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>Efl UI Text internal part class</summary>
9 [TextPartNativeInherit]
10 public class TextPart : Efl.Ui.LayoutPartText, Efl.Eo.IWrapper
12 ///<summary>Pointer to the native class description.</summary>
13 public override System.IntPtr NativeClass {
15 if (((object)this).GetType() == typeof (TextPart))
16 return Efl.Ui.TextPartNativeInherit.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_text_part_class_get();
23 ///<summary>Creates a new instance.</summary>
24 ///<param name="parent">Parent instance.</param>
25 public TextPart(Efl.Object parent= null
27 base(efl_ui_text_part_class_get(), typeof(TextPart), parent)
29 FinishInstantiation();
31 ///<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>
32 protected TextPart(System.IntPtr raw) : base(raw)
34 RegisterEventProxies();
36 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
37 protected TextPart(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
38 ///<summary>Verifies if the given object is equal to this one.</summary>
39 public override bool Equals(object obj)
41 var other = obj as Efl.Object;
44 return this.NativeHandle == other.NativeHandle;
46 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
47 public override int GetHashCode()
49 return this.NativeHandle.ToInt32();
51 ///<summary>Turns the native pointer into a string representation.</summary>
52 public override String ToString()
54 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
56 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
57 protected override void RegisterEventProxies()
59 base.RegisterEventProxies();
61 private static IntPtr GetEflClassStatic()
63 return Efl.Ui.TextPart.efl_ui_text_part_class_get();
66 public class TextPartNativeInherit : Efl.Ui.LayoutPartTextNativeInherit{
67 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
68 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
70 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
71 var methods = Efl.Eo.Globals.GetUserMethods(type);
72 descs.AddRange(base.GetEoOps(type));
75 public override IntPtr GetEflClass()
77 return Efl.Ui.TextPart.efl_ui_text_part_class_get();
79 public static new IntPtr GetEflClassStatic()
81 return Efl.Ui.TextPart.efl_ui_text_part_class_get();