#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 { /// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Ui.ILayoutOrientableReadonlyConcrete.NativeMethods] [Efl.Eo.BindingEntity] public interface ILayoutOrientableReadonly : Efl.Ui.ILayoutOrientable , Efl.Eo.IWrapper, IDisposable { } /// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. sealed public class ILayoutOrientableReadonlyConcrete : Efl.Eo.EoWrapper , ILayoutOrientableReadonly , Efl.Ui.ILayoutOrientable { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(ILayoutOrientableReadonlyConcrete)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } /// Subclasses should override this constructor if they are expected to be instantiated from native code. /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. private ILayoutOrientableReadonlyConcrete(ConstructingHandle ch) : base(ch) { } [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr efl_ui_layout_orientable_readonly_mixin_get(); /// Initializes a new instance of the class. /// Internal usage: This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. private ILayoutOrientableReadonlyConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } /// 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 GetOrientation() { var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate(this.NativeHandle); 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. public void SetOrientation(Efl.Ui.LayoutOrientation dir) { Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate(this.NativeHandle,dir); 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. public Efl.Ui.LayoutOrientation Orientation { get { return GetOrientation(); } set { SetOrientation(value); } } private static IntPtr GetEflClassStatic() { return Efl.Ui.ILayoutOrientableReadonlyConcrete.efl_ui_layout_orientable_readonly_mixin_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); if (efl_ui_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) }); } return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.Ui.ILayoutOrientableReadonlyConcrete.efl_ui_layout_orientable_readonly_mixin_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 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 = ((ILayoutOrientableReadonly)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 { ((ILayoutOrientableReadonly)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_UiILayoutOrientableReadonlyConcrete_ExtensionMethods { public static Efl.BindableProperty Orientation(this Efl.Ui.ItemFactory fac, Efl.Csharp.ExtensionTagmagic = null) where T : Efl.Ui.ILayoutOrientableReadonly { return new Efl.BindableProperty("orientation", fac); } } #pragma warning restore CS1591 #endif