2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
13 /// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
14 [Efl.Ui.ILayoutOrientableReadonlyConcrete.NativeMethods]
15 [Efl.Eo.BindingEntity]
16 public interface ILayoutOrientableReadonly :
17 Efl.Ui.ILayoutOrientable ,
18 Efl.Eo.IWrapper, IDisposable
21 /// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
22 sealed public class ILayoutOrientableReadonlyConcrete :
24 , ILayoutOrientableReadonly
25 , Efl.Ui.ILayoutOrientable
27 /// <summary>Pointer to the native class description.</summary>
28 public override System.IntPtr NativeClass
32 if (((object)this).GetType() == typeof(ILayoutOrientableReadonlyConcrete))
34 return GetEflClassStatic();
38 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
43 /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
44 /// Do not call this constructor directly.</summary>
45 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
46 private ILayoutOrientableReadonlyConcrete(ConstructingHandle ch) : base(ch)
50 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
51 efl_ui_layout_orientable_readonly_mixin_get();
52 /// <summary>Initializes a new instance of the <see cref="ILayoutOrientableReadonly"/> class.
53 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
54 /// <param name="wh">The native pointer to be wrapped.</param>
55 private ILayoutOrientableReadonlyConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
59 /// <summary>Control the direction of a given widget.
60 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
62 /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary>
63 /// <returns>Direction of the widget.</returns>
64 public Efl.Ui.LayoutOrientation GetOrientation() {
65 var _ret_var = Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_get_ptr.Value.Delegate(this.NativeHandle);
66 Eina.Error.RaiseIfUnhandledException();
69 /// <summary>Control the direction of a given widget.
70 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
72 /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary>
73 /// <param name="dir">Direction of the widget.</param>
74 public void SetOrientation(Efl.Ui.LayoutOrientation dir) {
75 Efl.Ui.ILayoutOrientableConcrete.NativeMethods.efl_ui_layout_orientation_set_ptr.Value.Delegate(this.NativeHandle,dir);
76 Eina.Error.RaiseIfUnhandledException();
78 /// <summary>Control the direction of a given widget.
79 /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
81 /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary>
82 /// <value>Direction of the widget.</value>
83 public Efl.Ui.LayoutOrientation Orientation {
84 get { return GetOrientation(); }
85 set { SetOrientation(value); }
87 private static IntPtr GetEflClassStatic()
89 return Efl.Ui.ILayoutOrientableReadonlyConcrete.efl_ui_layout_orientable_readonly_mixin_get();
91 /// <summary>Wrapper for native methods and virtual method delegates.
92 /// For internal use by generated code only.</summary>
93 public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
95 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
96 /// <summary>Gets the list of Eo operations to override.</summary>
97 /// <returns>The list of Eo operations to be overload.</returns>
98 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
100 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
101 var methods = Efl.Eo.Globals.GetUserMethods(type);
103 if (efl_ui_layout_orientation_get_static_delegate == null)
105 efl_ui_layout_orientation_get_static_delegate = new efl_ui_layout_orientation_get_delegate(orientation_get);
108 if (methods.FirstOrDefault(m => m.Name == "GetOrientation") != null)
110 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) });
113 if (efl_ui_layout_orientation_set_static_delegate == null)
115 efl_ui_layout_orientation_set_static_delegate = new efl_ui_layout_orientation_set_delegate(orientation_set);
118 if (methods.FirstOrDefault(m => m.Name == "SetOrientation") != null)
120 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) });
125 /// <summary>Returns the Eo class for the native methods of this class.</summary>
126 /// <returns>The native class pointer.</returns>
127 public override IntPtr GetEflClass()
129 return Efl.Ui.ILayoutOrientableReadonlyConcrete.efl_ui_layout_orientable_readonly_mixin_get();
132 #pragma warning disable CA1707, CS1591, SA1300, SA1600
135 private delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_delegate(System.IntPtr obj, System.IntPtr pd);
138 public delegate Efl.Ui.LayoutOrientation efl_ui_layout_orientation_get_api_delegate(System.IntPtr obj);
140 public static Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_get_api_delegate> efl_ui_layout_orientation_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_get_api_delegate>(Module, "efl_ui_layout_orientation_get");
142 private static Efl.Ui.LayoutOrientation orientation_get(System.IntPtr obj, System.IntPtr pd)
144 Eina.Log.Debug("function efl_ui_layout_orientation_get was called");
145 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
148 Efl.Ui.LayoutOrientation _ret_var = default(Efl.Ui.LayoutOrientation);
151 _ret_var = ((ILayoutOrientableReadonly)ws.Target).GetOrientation();
155 Eina.Log.Warning($"Callback error: {e.ToString()}");
156 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
164 return efl_ui_layout_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
168 private static efl_ui_layout_orientation_get_delegate efl_ui_layout_orientation_get_static_delegate;
171 private delegate void efl_ui_layout_orientation_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir);
174 public delegate void efl_ui_layout_orientation_set_api_delegate(System.IntPtr obj, Efl.Ui.LayoutOrientation dir);
176 public static Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_set_api_delegate> efl_ui_layout_orientation_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_layout_orientation_set_api_delegate>(Module, "efl_ui_layout_orientation_set");
178 private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.LayoutOrientation dir)
180 Eina.Log.Debug("function efl_ui_layout_orientation_set was called");
181 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
187 ((ILayoutOrientableReadonly)ws.Target).SetOrientation(dir);
191 Eina.Log.Warning($"Callback error: {e.ToString()}");
192 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
199 efl_ui_layout_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir);
203 private static efl_ui_layout_orientation_set_delegate efl_ui_layout_orientation_set_static_delegate;
205 #pragma warning restore CA1707, CS1591, SA1300, SA1600
214 #pragma warning disable CS1591
215 public static class Efl_UiILayoutOrientableReadonlyConcrete_ExtensionMethods {
216 public static Efl.BindableProperty<Efl.Ui.LayoutOrientation> Orientation<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.ILayoutOrientableReadonly, T>magic = null) where T : Efl.Ui.ILayoutOrientableReadonly {
217 return new Efl.BindableProperty<Efl.Ui.LayoutOrientation>("orientation", fac);
221 #pragma warning restore CS1591