1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>A custom layout engine for <see cref="Efl.Ui.Box"/> that stacks items.
13 /// Items will be stacked on top of each other (in the Z direction).</summary>
14 [Efl.Ui.BoxStack.NativeMethods]
15 [Efl.Eo.BindingEntity]
16 public class BoxStack : Efl.Ui.Box
18 ///<summary>Pointer to the native class description.</summary>
19 public override System.IntPtr NativeClass
23 if (((object)this).GetType() == typeof(BoxStack))
25 return GetEflClassStatic();
29 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
34 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
35 efl_ui_box_stack_class_get();
36 /// <summary>Initializes a new instance of the <see cref="BoxStack"/> class.</summary>
37 /// <param name="parent">Parent instance.</param>
38 /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle" /></param>
39 public BoxStack(Efl.Object parent
40 , System.String style = null) : base(efl_ui_box_stack_class_get(), parent)
42 if (Efl.Eo.Globals.ParamHelperCheck(style))
44 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
47 FinishInstantiation();
50 /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
51 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
52 protected BoxStack(ConstructingHandle ch) : base(ch)
56 /// <summary>Initializes a new instance of the <see cref="BoxStack"/> class.
57 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
58 /// <param name="wh">The native pointer to be wrapped.</param>
59 protected BoxStack(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
63 /// <summary>Initializes a new instance of the <see cref="BoxStack"/> class.
64 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
65 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
66 /// <param name="parent">The Efl.Object parent of this instance.</param>
67 protected BoxStack(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
71 private static IntPtr GetEflClassStatic()
73 return Efl.Ui.BoxStack.efl_ui_box_stack_class_get();
75 /// <summary>Wrapper for native methods and virtual method delegates.
76 /// For internal use by generated code only.</summary>
77 public new class NativeMethods : Efl.Ui.Box.NativeMethods
79 /// <summary>Gets the list of Eo operations to override.</summary>
80 /// <returns>The list of Eo operations to be overload.</returns>
81 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
83 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
84 descs.AddRange(base.GetEoOps(type));
87 /// <summary>Returns the Eo class for the native methods of this class.</summary>
88 /// <returns>The native class pointer.</returns>
89 public override IntPtr GetEflClass()
91 return Efl.Ui.BoxStack.efl_ui_box_stack_class_get();
94 #pragma warning disable CA1707, CS1591, SA1300, SA1600
96 #pragma warning restore CA1707, CS1591, SA1300, SA1600