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>Elementary check internal part class</summary>
13 [Efl.Ui.CheckLegacyPart.NativeMethods]
14 public class CheckLegacyPart : Efl.Ui.LayoutPartContent, Efl.Eo.IWrapper
16 ///<summary>Pointer to the native class description.</summary>
17 public override System.IntPtr NativeClass
21 if (((object)this).GetType() == typeof(CheckLegacyPart))
23 return GetEflClassStatic();
27 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
32 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
33 efl_ui_check_legacy_part_class_get();
34 /// <summary>Initializes a new instance of the <see cref="CheckLegacyPart"/> class.</summary>
35 /// <param name="parent">Parent instance.</param>
36 public CheckLegacyPart(Efl.Object parent= null
37 ) : base(efl_ui_check_legacy_part_class_get(), typeof(CheckLegacyPart), parent)
39 FinishInstantiation();
42 /// <summary>Initializes a new instance of the <see cref="CheckLegacyPart"/> class.
43 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
44 /// <param name="raw">The native pointer to be wrapped.</param>
45 protected CheckLegacyPart(System.IntPtr raw) : base(raw)
49 /// <summary>Initializes a new instance of the <see cref="CheckLegacyPart"/> class.
50 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
51 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
52 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
53 /// <param name="parent">The Efl.Object parent of this instance.</param>
54 protected CheckLegacyPart(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
58 /// <summary>Verifies if the given object is equal to this one.</summary>
59 /// <param name="instance">The object to compare to.</param>
60 /// <returns>True if both objects point to the same native object.</returns>
61 public override bool Equals(object instance)
63 var other = instance as Efl.Object;
68 return this.NativeHandle == other.NativeHandle;
71 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
72 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
73 public override int GetHashCode()
75 return this.NativeHandle.ToInt32();
78 /// <summary>Turns the native pointer into a string representation.</summary>
79 /// <returns>A string with the type and the native pointer for this object.</returns>
80 public override String ToString()
82 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
85 private static IntPtr GetEflClassStatic()
87 return Efl.Ui.CheckLegacyPart.efl_ui_check_legacy_part_class_get();
89 /// <summary>Wrapper for native methods and virtual method delegates.
90 /// For internal use by generated code only.</summary>
91 public new class NativeMethods : Efl.Ui.LayoutPartContent.NativeMethods
93 /// <summary>Gets the list of Eo operations to override.</summary>
94 /// <returns>The list of Eo operations to be overload.</returns>
95 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
97 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
98 descs.AddRange(base.GetEoOps(type));
101 /// <summary>Returns the Eo class for the native methods of this class.</summary>
102 /// <returns>The native class pointer.</returns>
103 public override IntPtr GetEflClass()
105 return Efl.Ui.CheckLegacyPart.efl_ui_check_legacy_part_class_get();
108 #pragma warning disable CA1707, SA1300, SA1600
110 #pragma warning restore CA1707, SA1300, SA1600