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>This is the base class for all "Part" handles in Efl.Ui widgets.
13 /// Since objects of this type are returned by <see cref="Efl.IPart.GetPart"/>, their lifetime is limited to exactly one function call only. Each widget class should expose more specific types for their API-defined parts.</summary>
14 [Efl.Ui.WidgetPart.NativeMethods]
15 [Efl.Eo.BindingEntity]
16 public class WidgetPart : Efl.Object
18 ///<summary>Pointer to the native class description.</summary>
19 public override System.IntPtr NativeClass
23 if (((object)this).GetType() == typeof(WidgetPart))
25 return GetEflClassStatic();
29 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
34 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
35 efl_ui_widget_part_class_get();
36 /// <summary>Initializes a new instance of the <see cref="WidgetPart"/> class.</summary>
37 /// <param name="parent">Parent instance.</param>
38 public WidgetPart(Efl.Object parent= null
39 ) : base(efl_ui_widget_part_class_get(), parent)
41 FinishInstantiation();
44 /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
45 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
46 protected WidgetPart(ConstructingHandle ch) : base(ch)
50 /// <summary>Initializes a new instance of the <see cref="WidgetPart"/> class.
51 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
52 /// <param name="wh">The native pointer to be wrapped.</param>
53 protected WidgetPart(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
57 /// <summary>Initializes a new instance of the <see cref="WidgetPart"/> class.
58 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
59 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
60 /// <param name="parent">The Efl.Object parent of this instance.</param>
61 protected WidgetPart(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
65 private static IntPtr GetEflClassStatic()
67 return Efl.Ui.WidgetPart.efl_ui_widget_part_class_get();
69 /// <summary>Wrapper for native methods and virtual method delegates.
70 /// For internal use by generated code only.</summary>
71 public new class NativeMethods : Efl.Object.NativeMethods
73 /// <summary>Gets the list of Eo operations to override.</summary>
74 /// <returns>The list of Eo operations to be overload.</returns>
75 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
77 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
78 descs.AddRange(base.GetEoOps(type));
81 /// <summary>Returns the Eo class for the native methods of this class.</summary>
82 /// <returns>The native class pointer.</returns>
83 public override IntPtr GetEflClass()
85 return Efl.Ui.WidgetPart.efl_ui_widget_part_class_get();
88 #pragma warning disable CA1707, CS1591, SA1300, SA1600
90 #pragma warning restore CA1707, CS1591, SA1300, SA1600