#pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { namespace Ui { /// 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. [Efl.Ui.LayoutPartTable.NativeMethods] public class LayoutPartTable : Efl.Ui.LayoutPart, 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 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(); /// 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) { FinishInstantiation(); } /// 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) { } /// 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) { } /// Sent after a new sub-object was added. /// (Since EFL 1.22) public event EventHandler ContentAddedEvt { add { lock (eventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; 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"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eventLock) { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentAddedEvt. public void OnContentAddedEvt(Efl.IContainerContentAddedEvt_Args e) { 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; } IntPtr info = e.arg.NativeHandle; Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info); } /// Sent after a sub-object was removed, before unref. /// (Since EFL 1.22) public event EventHandler ContentRemovedEvt { add { lock (eventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; 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"; AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value); } } remove { lock (eventLock) { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; RemoveNativeEventHandler(efl.Libs.Efl, key, value); } } } ///Method to raise event ContentRemovedEvt. public void OnContentRemovedEvt(Efl.IContainerContentRemovedEvt_Args e) { 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; } 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.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 on object's content. virtual public Eina.Iterator ContentIterate() { 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); } /// Returns the number of contained sub-objects. /// (Since EFL 1.22) /// Number of sub-objects. virtual public int ContentCount() { 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; } /// Removes all packed sub-objects and unreferences them. /// true on success, false otherwise. virtual public bool ClearPack() { 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; } /// Removes all packed sub-objects without unreferencing them. /// Use with caution. /// true on success, false otherwise. virtual public bool UnpackAll() { 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 sub-object from the container without deleting it. /// The sub-object to unpack. /// false if subobj wasn't in the container or couldn't be removed. 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; } /// Adds a sub-object 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. /// The object to pack. /// false if subobj could not be packed. 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; } /// Position and span of the subobj in this container, may be modified to move the subobj /// Child object /// Column number /// Row number /// 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.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.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.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(); } /// Specifies the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and . /// Amount of columns. virtual public int GetTableColumns() { 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 the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and . /// Amount of columns. 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(); } /// Specifies the amount of rows the table will have when the fill direction is vertical. If it is horizontal, the amount of rows depends on the amount of cells added and . /// Amount of rows. virtual public int GetTableRows() { 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 the amount of rows the table will have when the fill direction is vertical. If it is horizontal, the amount of rows depends on the amount of cells added and . /// Amount of 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(); } /// 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. /// Column number /// Row number /// 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.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; } /// 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 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); } /// Returns a child at a given position, see . /// Column number /// Row number /// Child object 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; } /// Specifies the amount of columns the table will have when the fill direction is horizontal. If it is vertical, the amount of columns depends on the amount of cells added and . /// Amount of columns. public int TableColumns { get { return GetTableColumns(); } set { SetTableColumns(value); } } /// Specifies the amount of rows the table will have when the fill direction is vertical. If it is horizontal, the amount of rows depends on the amount of cells added and . /// Amount of rows. public int TableRows { get { return GetTableRows(); } set { SetTableRows(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.LayoutPartTable.efl_ui_layout_part_table_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Ui.LayoutPart.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_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_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 == "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); } 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_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; } /// 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(); } #pragma warning disable CA1707, CS1591, 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((LayoutPartTable)ws.Target).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; 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Iterator _ret_var = default(Eina.Iterator); try { _ret_var = ((LayoutPartTable)ws.Target).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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { int _ret_var = default(int); try { _ret_var = ((LayoutPartTable)ws.Target).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))); } } private static efl_content_count_delegate efl_content_count_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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPartTable)ws.Target).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; [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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPartTable)ws.Target).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))); } } 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPartTable)ws.Target).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); } } 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPartTable)ws.Target).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; [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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { col = default(int); row = default(int); colspan = default(int); rowspan = default(int); bool _ret_var = default(bool); try { _ret_var = ((LayoutPartTable)ws.Target).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); } } 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { cols = default(int); rows = default(int); try { ((LayoutPartTable)ws.Target).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; 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((LayoutPartTable)ws.Target).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; 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { int _ret_var = default(int); try { _ret_var = ((LayoutPartTable)ws.Target).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))); } } 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((LayoutPartTable)ws.Target).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; 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { int _ret_var = default(int); try { _ret_var = ((LayoutPartTable)ws.Target).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))); } } 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((LayoutPartTable)ws.Target).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; [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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((LayoutPartTable)ws.Target).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); } } 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Iterator _ret_var = default(Eina.Iterator); try { _ret_var = ((LayoutPartTable)ws.Target).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; } 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { _ret_var = ((LayoutPartTable)ws.Target).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); } } private static efl_pack_table_content_get_delegate efl_pack_table_content_get_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } }