#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { namespace Ui { /// A container that arranges children widgets in a vertical or horizontal fashion. /// The Box widget is the most basic (and the most used) of the container widgets. Other widgets are added to the Box through the interface, and the layout direction (either vertical or horizontal) is controlled through the property. /// /// The Box widget itself is invisible, as are most container widgets: Their purpose is to handle the position and size of all their children so you don't have to. /// /// All widgets inside a vertical Box container will have the same width as the container, and their heights will be automatically chosen so that they cover the whole surface of the container from top to bottom (Imagine a stack of pizza boxes neatly fitting inside your oven). The property then controls whether all widgets have the same height (homogeneous) or not. /// /// A horizontal Box container example would be the button toolbar at the top of most word processing programs. /// /// Precise layout can be further customized through the interface on the Box itself, or through the interface on each of the children widgets. [Efl.Ui.Box.NativeMethods] [Efl.Eo.BindingEntity] public class Box : Efl.Ui.Widget, Efl.IContainer, Efl.IPack, Efl.IPackLayout, Efl.IPackLinear, Efl.Gfx.IArrangement, Efl.Ui.ILayoutOrientable { /// Pointer to the native class description. 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(); /// 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(), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); } FinishInstantiation(); } /// Subclasses should override this constructor if they are expected to be instantiated from native code. /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected Box(ConstructingHandle ch) : base(ch) { } /// 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(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } /// 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 Efl.Object parent of this instance. protected Box(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } /// Sent after a new sub-object was added. /// (Since EFL 1.22) /// public event EventHandler ContentAddedEvt { add { lock (eflBindingEventLock) { 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.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CONTAINER_EVENT_CONTENT_ADDED"; RemoveNativeEventHandler(efl.Libs.Elementary, 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.Elementary, 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 (eflBindingEventLock) { 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.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_CONTAINER_EVENT_CONTENT_REMOVED"; RemoveNativeEventHandler(efl.Libs.Elementary, 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.Elementary, 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 the layout was updated. public event EventHandler LayoutUpdatedEvt { add { lock (eflBindingEventLock) { Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) => { var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target; if (obj != null) { EventArgs args = EventArgs.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"; AddNativeEventHandler(efl.Libs.Elementary, key, callerCb, value); } } remove { lock (eflBindingEventLock) { string key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; RemoveNativeEventHandler(efl.Libs.Elementary, key, value); } } } /// Method to raise event LayoutUpdatedEvt. public void OnLayoutUpdatedEvt(EventArgs e) { var key = "_EFL_PACK_EVENT_LAYOUT_UPDATED"; IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Elementary, 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); } /// In homogeneous mode all children of a vertical Box have the same height, equal to the height of the tallest widget. Children of a horizontal Box have the same width, equal to the width of the widest widget. Otherwise, individual widget sizes are not modified. /// true if the Box is homogeneous, false otherwise. virtual public bool GetHomogeneous() { var _ret_var = Efl.Ui.Box.NativeMethods.efl_ui_box_homogeneous_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// In homogeneous mode all children of a vertical Box have the same height, equal to the height of the tallest widget. Children of a horizontal Box have the same width, equal to the width of the widest widget. Otherwise, individual widget sizes are not modified. /// true if the Box is homogeneous, false otherwise. virtual public void SetHomogeneous(bool homogeneous) { Efl.Ui.Box.NativeMethods.efl_ui_box_homogeneous_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),homogeneous); 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((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return new Eina.Iterator(_ret_var, true); } /// 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((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); 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((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); 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((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); 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((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),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((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),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.IPackLayoutConcrete.NativeMethods.efl_pack_layout_request_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); 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.IPackLayoutConcrete.NativeMethods.efl_pack_layout_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); 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. /// Object 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((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Append object 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. /// Object to pack at the end. /// 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((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Prepend an object before an existing 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. /// Object to pack before existing. /// Existing reference sub-object. /// 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.IPackLinearConcrete.NativeMethods.efl_pack_before_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Append an object after an existing 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. /// Object to pack after existing. /// Existing reference sub-object. /// 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.IPackLinearConcrete.NativeMethods.efl_pack_after_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, existing); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Inserts subobj BEFORE the sub-object at position index. /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . /// /// 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. /// Object to pack. /// Index of existing sub-object 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.IPackLinearConcrete.NativeMethods.efl_pack_at_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Sub-object at a given index in this container. /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . /// /// If index is less than -count, it will return the first sub-object whereas index greater than count-1 will return the last sub-object. /// Index of the existing sub-object to retrieve. Valid range is -count to (count-1). /// The sub-object contained at the given index. virtual public Efl.Gfx.IEntity GetPackContent(int index) { var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Get the index of a sub-object in this container. /// An existing sub-object in this container. /// -1 in case subobj is not found, or the index of subobj 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((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Pop out (remove) the sub-object at the specified index. /// index ranges from -count to count-1, where positive numbers go from first sub-object (0) to last (count-1), and negative numbers go from last sub-object (-1) to first (-count). count is the number of sub-objects currently in the container as returned by . /// /// If index is less than -count, it will remove the first sub-object whereas index greater than count-1 will remove the last sub-object. /// Index of the sub-object to remove. Valid range is -count to (count-1). /// The sub-object if it could be removed. virtual public Efl.Gfx.IEntity PackUnpackAt(int index) { var _ret_var = Efl.IPackLinearConcrete.NativeMethods.efl_pack_unpack_at_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),index); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment virtual public void GetContentAlign(out double align_horiz, out double align_vert) { Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_align_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out align_horiz, out align_vert); Eina.Error.RaiseIfUnhandledException(); } /// Alignment of the container within its bounds /// Horizontal alignment /// Vertical alignment virtual public void SetContentAlign(double align_horiz, double align_vert) { Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_align_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),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 GetContentPadding(out double pad_horiz, out double pad_vert, out bool scalable) { Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),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 SetContentPadding(double pad_horiz, double pad_vert, bool scalable) { Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),pad_horiz, pad_vert, scalable); Eina.Error.RaiseIfUnhandledException(); } /// 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. virtual public Efl.Ui.LayoutOrientation GetOrientation() { var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass))); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// 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. virtual public void SetOrientation(Efl.Ui.LayoutOrientation dir) { Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),dir); Eina.Error.RaiseIfUnhandledException(); } /// In homogeneous mode all children of a vertical Box have the same height, equal to the height of the tallest widget. Children of a horizontal Box have the same width, equal to the width of the widest widget. Otherwise, individual widget sizes are not modified. /// true if the Box is homogeneous, false otherwise. public bool Homogeneous { get { return GetHomogeneous(); } set { SetHomogeneous(value); } } /// Alignment of the container within its bounds /// Horizontal alignment public (double, double) ContentAlign { get { double _out_align_horiz = default(double); double _out_align_vert = default(double); GetContentAlign(out _out_align_horiz,out _out_align_vert); return (_out_align_horiz,_out_align_vert); } set { SetContentAlign( value.Item1, value.Item2); } } /// Padding between items contained in this object. /// Horizontal padding public (double, double, bool) ContentPadding { get { double _out_pad_horiz = default(double); double _out_pad_vert = default(double); bool _out_scalable = default(bool); GetContentPadding(out _out_pad_horiz,out _out_pad_vert,out _out_scalable); return (_out_pad_horiz,_out_pad_vert,_out_scalable); } set { SetContentPadding( value.Item1, value.Item2, value.Item3); } } /// 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.LayoutOrientation Orientation { get { return GetOrientation(); } set { SetOrientation(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.Box.efl_ui_box_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Ui.Widget.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_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_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_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_gfx_arrangement_content_align_get_static_delegate == null) { efl_gfx_arrangement_content_align_get_static_delegate = new efl_gfx_arrangement_content_align_get_delegate(content_align_get); } if (methods.FirstOrDefault(m => m.Name == "GetContentAlign") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_align_get_static_delegate) }); } if (efl_gfx_arrangement_content_align_set_static_delegate == null) { efl_gfx_arrangement_content_align_set_static_delegate = new efl_gfx_arrangement_content_align_set_delegate(content_align_set); } if (methods.FirstOrDefault(m => m.Name == "SetContentAlign") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_align_set_static_delegate) }); } if (efl_gfx_arrangement_content_padding_get_static_delegate == null) { efl_gfx_arrangement_content_padding_get_static_delegate = new efl_gfx_arrangement_content_padding_get_delegate(content_padding_get); } if (methods.FirstOrDefault(m => m.Name == "GetContentPadding") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_padding_get_static_delegate) }); } if (efl_gfx_arrangement_content_padding_set_static_delegate == null) { efl_gfx_arrangement_content_padding_set_static_delegate = new efl_gfx_arrangement_content_padding_set_delegate(content_padding_set); } if (methods.FirstOrDefault(m => m.Name == "SetContentPadding") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_padding_set_static_delegate) }); } if (efl_ui_layout_orientation_get_static_delegate == null) { efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_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_ui_layout_orientation_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_get_static_delegate) }); } if (efl_ui_layout_orientation_set_static_delegate == null) { efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_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_ui_layout_orientation_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_layout_orientation_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.Box.efl_ui_box_class_get(); } #pragma warning disable CA1707, CS1591, 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Box)ws.Target).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_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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Box)ws.Target).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; 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 = ((Box)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 = ((Box)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 = ((Box)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 = ((Box)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 = ((Box)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 = ((Box)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; 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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Box)ws.Target).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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Box)ws.Target).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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Box)ws.Target).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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Box)ws.Target).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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Box)ws.Target).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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Box)ws.Target).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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((Box)ws.Target).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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { _ret_var = ((Box)ws.Target).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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { int _ret_var = default(int); try { _ret_var = ((Box)ws.Target).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"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity); try { _ret_var = ((Box)ws.Target).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 void efl_gfx_arrangement_content_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert); public delegate void efl_gfx_arrangement_content_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert); public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_align_get"); private static void content_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert) { Eina.Log.Debug("function efl_gfx_arrangement_content_align_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { align_horiz = default(double); align_vert = default(double); try { ((Box)ws.Target).GetContentAlign(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_gfx_arrangement_content_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_gfx_arrangement_content_align_get_delegate efl_gfx_arrangement_content_align_get_static_delegate; private delegate void efl_gfx_arrangement_content_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert); public delegate void efl_gfx_arrangement_content_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert); public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_align_set"); private static void content_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert) { Eina.Log.Debug("function efl_gfx_arrangement_content_align_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Box)ws.Target).SetContentAlign(align_horiz, align_vert); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_arrangement_content_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_gfx_arrangement_content_align_set_delegate efl_gfx_arrangement_content_align_set_static_delegate; private delegate void efl_gfx_arrangement_content_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_gfx_arrangement_content_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_gfx_arrangement_content_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_padding_get"); private static void content_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable) { Eina.Log.Debug("function efl_gfx_arrangement_content_padding_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { pad_horiz = default(double); pad_vert = default(double); scalable = default(bool); try { ((Box)ws.Target).GetContentPadding(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_gfx_arrangement_content_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_gfx_arrangement_content_padding_get_delegate efl_gfx_arrangement_content_padding_get_static_delegate; private delegate void efl_gfx_arrangement_content_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); public delegate void efl_gfx_arrangement_content_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable); public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_padding_set"); private static void content_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable) { Eina.Log.Debug("function efl_gfx_arrangement_content_padding_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Box)ws.Target).SetContentPadding(pad_horiz, pad_vert, scalable); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_arrangement_content_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_gfx_arrangement_content_padding_set_delegate efl_gfx_arrangement_content_padding_set_static_delegate; private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_get"); private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_layout_orientation_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation); try { _ret_var = ((Box)ws.Target).GetOrientation(); } 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_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate; private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir); public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj, Efl.Ui.LayoutOrientation dir); public static Efl.Eo.FunctionWrapper efl_ui_layout_orientation_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_ui_layout_orientation_set"); private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir) { Eina.Log.Debug("function efl_ui_layout_orientation_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Box)ws.Target).SetOrientation(dir); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } } private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } } #if EFL_BETA #pragma warning disable CS1591 public static class Efl_UiBox_ExtensionMethods { public static Efl.BindableProperty Homogeneous(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Box { return new Efl.BindableProperty("homogeneous", fac); } public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.Box { return new Efl.BindableProperty("orientation", fac); } } #pragma warning restore CS1591 #endif