X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=internals%2Fsrc%2FEflSharp%2FEflSharp%2Fefl%2Fefl_ui_list_item.eo.cs;h=5d0264e341bf9d090ac38b9c54a359b1475846ea;hb=07e87ad5f5e45261cab98307bf1bc16bd7d1f23e;hp=0cab5484d9298da8ff13af998d7e9f621b45593c;hpb=901af237681283f6887ffc46fd7f66c4186bf280;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs index 0cab548..5d0264e 100644 --- a/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs +++ b/internals/src/EflSharp/EflSharp/efl/efl_ui_list_item.eo.cs @@ -3,39 +3,54 @@ using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; +using System.Threading; using System.ComponentModel; -namespace Efl { namespace Ui { -/// -[ListItemNativeInherit] +namespace Efl { + +namespace Ui { + +[Efl.Ui.ListItem.NativeMethods] public abstract class ListItem : Efl.Ui.Item, Efl.Eo.IWrapper { ///Pointer to the native class description. - public override System.IntPtr NativeClass { - get { - if (((object)this).GetType() == typeof (ListItem)) - return Efl.Ui.ListItemNativeInherit.GetEflClassStatic(); + public override System.IntPtr NativeClass + { + get + { + if (((object)this).GetType() == typeof(ListItem)) + { + return GetEflClassStatic(); + } else + { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; + } } } + [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr efl_ui_list_item_class_get(); - ///Creates a new instance. - ///Parent instance. - ///The widget style to use. See + /// Initializes a new instance of the class. + /// Parent instance. + /// The widget style to use. See public ListItem(Efl.Object parent - , System.String style = null) : - base(efl_ui_list_item_class_get(), typeof(ListItem), parent) + , System.String style = null) : base(efl_ui_list_item_class_get(), typeof(ListItem), parent) { if (Efl.Eo.Globals.ParamHelperCheck(style)) + { SetStyle(Efl.Eo.Globals.GetParamHelper(style)); + } + FinishInstantiation(); } - ///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + + /// Initializes a new instance of the class. + /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. + /// The native pointer to be wrapped. protected ListItem(System.IntPtr raw) : base(raw) { - RegisterEventProxies(); - } + } + [Efl.Eo.PrivateNativeClass] private class ListItemRealized : ListItem { @@ -43,52 +58,72 @@ public abstract class ListItem : Efl.Ui.Item, Efl.Eo.IWrapper { } } - ///Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. - protected ListItem(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {} - ///Verifies if the given object is equal to this one. - public override bool Equals(object obj) + /// Initializes a new instance of the class. + /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. + /// The pointer to the base native Eo class. + /// The managed type of the public constructor that originated this call. + /// The Efl.Object parent of this instance. + protected ListItem(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent) + { + } + + /// Verifies if the given object is equal to this one. + /// The object to compare to. + /// True if both objects point to the same native object. + public override bool Equals(object instance) { - var other = obj as Efl.Object; + var other = instance as Efl.Object; if (other == null) + { return false; + } return this.NativeHandle == other.NativeHandle; } - ///Gets the hash code for this object based on the native pointer it points to. + + /// Gets the hash code for this object based on the native pointer it points to. + /// The value of the pointer, to be used as the hash code of this object. public override int GetHashCode() { return this.NativeHandle.ToInt32(); } - ///Turns the native pointer into a string representation. + + /// Turns the native pointer into a string representation. + /// A string with the type and the native pointer for this object. public override String ToString() { return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]"; } - ///Register the Eo event wrappers making the bridge to C# events. Internal usage only. - protected override void RegisterEventProxies() - { - base.RegisterEventProxies(); - } + private static IntPtr GetEflClassStatic() { return Efl.Ui.ListItem.efl_ui_list_item_class_get(); } -} -public class ListItemNativeInherit : Efl.Ui.ItemNativeInherit{ - public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary); - public override System.Collections.Generic.List GetEoOps(System.Type type) - { - var descs = new System.Collections.Generic.List(); - var methods = Efl.Eo.Globals.GetUserMethods(type); - descs.AddRange(base.GetEoOps(type)); - return descs; - } - public override IntPtr GetEflClass() - { - return Efl.Ui.ListItem.efl_ui_list_item_class_get(); - } - public static new IntPtr GetEflClassStatic() + /// Wrapper for native methods and virtual method delegates. + /// For internal use by generated code only. + public new class NativeMethods : Efl.Ui.Item.NativeMethods { - return Efl.Ui.ListItem.efl_ui_list_item_class_get(); - } + /// Gets the list of Eo operations to override. + /// The list of Eo operations to be overload. + public override System.Collections.Generic.List GetEoOps(System.Type type) + { + var descs = new System.Collections.Generic.List(); + descs.AddRange(base.GetEoOps(type)); + return descs; + } + /// Returns the Eo class for the native methods of this class. + /// The native class pointer. + public override IntPtr GetEflClass() + { + return Efl.Ui.ListItem.efl_ui_list_item_class_get(); + } + + #pragma warning disable CA1707, SA1300, SA1600 + + #pragma warning restore CA1707, SA1300, SA1600 + +} +} +} + } -} } +