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 editable class</summary>
9 [TextEditableNativeInherit]
10 public class TextEditable : Efl.Ui.Text, Efl.Eo.IWrapper
12 public new static System.IntPtr klass = System.IntPtr.Zero;
13 public new static Efl.Ui.TextEditableNativeInherit nativeInherit = new Efl.Ui.TextEditableNativeInherit();
14 ///<summary>Pointer to the native class description.</summary>
15 public override System.IntPtr NativeClass {
17 if (((object)this).GetType() == typeof (TextEditable))
18 return Efl.Ui.TextEditableNativeInherit.GetEflClassStatic();
20 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
23 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
24 efl_ui_text_editable_class_get();
25 ///<summary>Creates a new instance.</summary>
26 ///<param name="parent">Parent instance.</param>
27 ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
28 public TextEditable(Efl.Object parent
29 , System.String style = null) :
30 base(efl_ui_text_editable_class_get(), typeof(TextEditable), parent)
32 if (Efl.Eo.Globals.ParamHelperCheck(style))
33 SetStyle(Efl.Eo.Globals.GetParamHelper(style));
34 FinishInstantiation();
36 ///<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>
37 public TextEditable(System.IntPtr raw) : base(raw)
39 register_event_proxies();
41 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
42 protected TextEditable(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
43 ///<summary>Casts obj into an instance of this type.</summary>
44 public new static TextEditable static_cast(Efl.Object obj)
47 throw new System.ArgumentNullException("obj");
48 return new TextEditable(obj.NativeHandle);
50 ///<summary>Verifies if the given object is equal to this one.</summary>
51 public override bool Equals(object obj)
53 var other = obj as Efl.Object;
56 return this.NativeHandle == other.NativeHandle;
58 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
59 public override int GetHashCode()
61 return this.NativeHandle.ToInt32();
63 ///<summary>Turns the native pointer into a string representation.</summary>
64 public override String ToString()
66 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
68 protected override void register_event_proxies()
70 base.register_event_proxies();
72 private static new IntPtr GetEflClassStatic()
74 return Efl.Ui.TextEditable.efl_ui_text_editable_class_get();
77 public class TextEditableNativeInherit : Efl.Ui.TextNativeInherit{
78 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
79 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
81 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
82 descs.AddRange(base.GetEoOps(type));
85 public override IntPtr GetEflClass()
87 return Efl.Ui.TextEditable.efl_ui_text_editable_class_get();
89 public static new IntPtr GetEflClassStatic()
91 return Efl.Ui.TextEditable.efl_ui_text_editable_class_get();