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 ///<summary>Pointer to the native class description.</summary>
13 public override System.IntPtr NativeClass {
15 if (((object)this).GetType() == typeof (TextEditable))
16 return Efl.Ui.TextEditableNativeInherit.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_editable_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 TextEditable(Efl.Object parent
27 , System.String style = null) :
28 base(efl_ui_text_editable_class_get(), typeof(TextEditable), 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 TextEditable(System.IntPtr raw) : base(raw)
37 RegisterEventProxies();
39 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
40 protected TextEditable(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
41 ///<summary>Verifies if the given object is equal to this one.</summary>
42 public override bool Equals(object obj)
44 var other = obj as Efl.Object;
47 return this.NativeHandle == other.NativeHandle;
49 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
50 public override int GetHashCode()
52 return this.NativeHandle.ToInt32();
54 ///<summary>Turns the native pointer into a string representation.</summary>
55 public override String ToString()
57 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
59 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
60 protected override void RegisterEventProxies()
62 base.RegisterEventProxies();
64 private static IntPtr GetEflClassStatic()
66 return Efl.Ui.TextEditable.efl_ui_text_editable_class_get();
69 public class TextEditableNativeInherit : Efl.Ui.TextNativeInherit{
70 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
71 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
73 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
74 var methods = Efl.Eo.Globals.GetUserMethods(type);
75 descs.AddRange(base.GetEoOps(type));
78 public override IntPtr GetEflClass()
80 return Efl.Ui.TextEditable.efl_ui_text_editable_class_get();
82 public static new IntPtr GetEflClassStatic()
84 return Efl.Ui.TextEditable.efl_ui_text_editable_class_get();