927dfa726bb8ad68d27563a456d79fb930c2ef12
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_table_static.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Threading;
7 using System.ComponentModel;
8 namespace Efl {
9
10 namespace Ui {
11
12 /// <summary>Efl UI table static class</summary>
13 [Efl.Ui.TableStatic.NativeMethods]
14 public class TableStatic : Efl.Ui.Table, Efl.Eo.IWrapper
15 {
16     ///<summary>Pointer to the native class description.</summary>
17     public override System.IntPtr NativeClass
18     {
19         get
20         {
21             if (((object)this).GetType() == typeof(TableStatic))
22             {
23                 return GetEflClassStatic();
24             }
25             else
26             {
27                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
28             }
29         }
30     }
31
32     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
33         efl_ui_table_static_class_get();
34     /// <summary>Initializes a new instance of the <see cref="TableStatic"/> class.</summary>
35     /// <param name="parent">Parent instance.</param>
36     /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
37     public TableStatic(Efl.Object parent
38             , System.String style = null) : base(efl_ui_table_static_class_get(), typeof(TableStatic), parent)
39     {
40         if (Efl.Eo.Globals.ParamHelperCheck(style))
41         {
42             SetStyle(Efl.Eo.Globals.GetParamHelper(style));
43         }
44
45         FinishInstantiation();
46     }
47
48     /// <summary>Initializes a new instance of the <see cref="TableStatic"/> class.
49     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
50     /// <param name="raw">The native pointer to be wrapped.</param>
51     protected TableStatic(System.IntPtr raw) : base(raw)
52     {
53             }
54
55     /// <summary>Initializes a new instance of the <see cref="TableStatic"/> class.
56     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
57     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
58     /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
59     /// <param name="parent">The Efl.Object parent of this instance.</param>
60     protected TableStatic(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
61     {
62     }
63
64     /// <summary>Verifies if the given object is equal to this one.</summary>
65     /// <param name="instance">The object to compare to.</param>
66     /// <returns>True if both objects point to the same native object.</returns>
67     public override bool Equals(object instance)
68     {
69         var other = instance as Efl.Object;
70         if (other == null)
71         {
72             return false;
73         }
74         return this.NativeHandle == other.NativeHandle;
75     }
76
77     /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
78     /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
79     public override int GetHashCode()
80     {
81         return this.NativeHandle.ToInt32();
82     }
83
84     /// <summary>Turns the native pointer into a string representation.</summary>
85     /// <returns>A string with the type and the native pointer for this object.</returns>
86     public override String ToString()
87     {
88         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
89     }
90
91     private static IntPtr GetEflClassStatic()
92     {
93         return Efl.Ui.TableStatic.efl_ui_table_static_class_get();
94     }
95     /// <summary>Wrapper for native methods and virtual method delegates.
96     /// For internal use by generated code only.</summary>
97     public new class NativeMethods : Efl.Ui.Table.NativeMethods
98     {
99         /// <summary>Gets the list of Eo operations to override.</summary>
100         /// <returns>The list of Eo operations to be overload.</returns>
101         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
102         {
103             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
104             descs.AddRange(base.GetEoOps(type));
105             return descs;
106         }
107         /// <summary>Returns the Eo class for the native methods of this class.</summary>
108         /// <returns>The native class pointer.</returns>
109         public override IntPtr GetEflClass()
110         {
111             return Efl.Ui.TableStatic.efl_ui_table_static_class_get();
112         }
113
114         #pragma warning disable CA1707, SA1300, SA1600
115
116         #pragma warning restore CA1707, SA1300, SA1600
117
118 }
119 }
120 }
121
122 }
123