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></summary>
9 [ListItemNativeInherit]
10 public abstract class ListItem : Efl.Ui.Item, Efl.Eo.IWrapper
12 ///<summary>Pointer to the native class description.</summary>
13 public override System.IntPtr NativeClass {
15 if (((object)this).GetType() == typeof (ListItem))
16 return Efl.Ui.ListItemNativeInherit.GetEflClassStatic();
18 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
21 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
22 efl_ui_list_item_class_get();
23 ///<summary>Creates a new instance.</summary>
24 ///<param name="parent">Parent instance.</param>
25 ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
26 public ListItem(Efl.Object parent
27 , System.String style = null) :
28 base(efl_ui_list_item_class_get(), typeof(ListItem), parent)
30 if (Efl.Eo.Globals.ParamHelperCheck(style))
31 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
32 FinishInstantiation();
34 ///<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>
35 protected ListItem(System.IntPtr raw) : base(raw)
37 RegisterEventProxies();
39 [Efl.Eo.PrivateNativeClass]
40 private class ListItemRealized : ListItem
42 private ListItemRealized(IntPtr ptr) : base(ptr)
46 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
47 protected ListItem(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
48 ///<summary>Verifies if the given object is equal to this one.</summary>
49 public override bool Equals(object obj)
51 var other = obj as Efl.Object;
54 return this.NativeHandle == other.NativeHandle;
56 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
57 public override int GetHashCode()
59 return this.NativeHandle.ToInt32();
61 ///<summary>Turns the native pointer into a string representation.</summary>
62 public override String ToString()
64 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
66 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
67 protected override void RegisterEventProxies()
69 base.RegisterEventProxies();
71 private static IntPtr GetEflClassStatic()
73 return Efl.Ui.ListItem.efl_ui_list_item_class_get();
76 public class ListItemNativeInherit : Efl.Ui.ItemNativeInherit{
77 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
78 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
80 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
81 var methods = Efl.Eo.Globals.GetUserMethods(type);
82 descs.AddRange(base.GetEoOps(type));
85 public override IntPtr GetEflClass()
87 return Efl.Ui.ListItem.efl_ui_list_item_class_get();
89 public static new IntPtr GetEflClassStatic()
91 return Efl.Ui.ListItem.efl_ui_list_item_class_get();