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 async class
10 [TextAsyncNativeInherit]
11 public class TextAsync : Efl.Ui.Text, Efl.Eo.IWrapper
13 public new static System.IntPtr klass = System.IntPtr.Zero;
14 public new static Efl.Ui.TextAsyncNativeInherit nativeInherit = new Efl.Ui.TextAsyncNativeInherit();
15 ///<summary>Pointer to the native class description.</summary>
16 public override System.IntPtr NativeClass {
18 if (((object)this).GetType() == typeof (TextAsync))
19 return Efl.Ui.TextAsyncNativeInherit.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_text_async_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 TextAsync(Efl.Object parent
30 , System.String style = null) :
31 base(efl_ui_text_async_class_get(), typeof(TextAsync), 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 TextAsync(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 TextAsync(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 TextAsync static_cast(Efl.Object obj)
48 throw new System.ArgumentNullException("obj");
49 return new TextAsync(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.TextAsync.efl_ui_text_async_class_get();
78 public class TextAsyncNativeInherit : Efl.Ui.TextNativeInherit{
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.TextAsync.efl_ui_text_async_class_get();
90 public static new IntPtr GetEflClassStatic()
92 return Efl.Ui.TextAsync.efl_ui_text_async_class_get();