1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.ComponentModel;
7 namespace Efl { namespace Ui {
8 /// <summary>A custom layout engine for <see cref="Efl.Ui.Box"/> that stacks items.
9 /// Items will be stacked on top of each other (in the Z direction).</summary>
10 [BoxStackNativeInherit]
11 public class BoxStack : Efl.Ui.Box, Efl.Eo.IWrapper
13 public new static System.IntPtr klass = System.IntPtr.Zero;
14 public new static Efl.Ui.BoxStackNativeInherit nativeInherit = new Efl.Ui.BoxStackNativeInherit();
15 ///<summary>Pointer to the native class description.</summary>
16 public override System.IntPtr NativeClass {
18 if (((object)this).GetType() == typeof (BoxStack))
19 return Efl.Ui.BoxStackNativeInherit.GetEflClassStatic();
21 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
24 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
25 efl_ui_box_stack_class_get();
26 ///<summary>Creates a new instance.</summary>
27 ///<param name="parent">Parent instance.</param>
28 ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
29 public BoxStack(Efl.Object parent
30 , System.String style = null) :
31 base(efl_ui_box_stack_class_get(), typeof(BoxStack), parent)
33 if (Efl.Eo.Globals.ParamHelperCheck(style))
34 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
35 FinishInstantiation();
37 ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
38 public BoxStack(System.IntPtr raw) : base(raw)
40 register_event_proxies();
42 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
43 protected BoxStack(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
44 ///<summary>Casts obj into an instance of this type.</summary>
45 public new static BoxStack static_cast(Efl.Object obj)
48 throw new System.ArgumentNullException("obj");
49 return new BoxStack(obj.NativeHandle);
51 ///<summary>Verifies if the given object is equal to this one.</summary>
52 public override bool Equals(object obj)
54 var other = obj as Efl.Object;
57 return this.NativeHandle == other.NativeHandle;
59 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
60 public override int GetHashCode()
62 return this.NativeHandle.ToInt32();
64 ///<summary>Turns the native pointer into a string representation.</summary>
65 public override String ToString()
67 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
69 protected override void register_event_proxies()
71 base.register_event_proxies();
73 private static new IntPtr GetEflClassStatic()
75 return Efl.Ui.BoxStack.efl_ui_box_stack_class_get();
78 public class BoxStackNativeInherit : Efl.Ui.BoxNativeInherit{
79 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
80 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
82 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
83 descs.AddRange(base.GetEoOps(type));
86 public override IntPtr GetEflClass()
88 return Efl.Ui.BoxStack.efl_ui_box_stack_class_get();
90 public static new IntPtr GetEflClassStatic()
92 return Efl.Ui.BoxStack.efl_ui_box_stack_class_get();