[EflSharp] Update Circle and efl cs files (#819)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_focus_manager_root_focus.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 namespace Focus {
13
14 /// <summary>This class ensures that the root is at least focusable, if nothing else is focusable</summary>
15 [Efl.Ui.Focus.ManagerRootFocus.NativeMethods]
16 public class ManagerRootFocus : Efl.Ui.Focus.ManagerCalc, Efl.Eo.IWrapper
17 {
18     ///<summary>Pointer to the native class description.</summary>
19     public override System.IntPtr NativeClass
20     {
21         get
22         {
23             if (((object)this).GetType() == typeof(ManagerRootFocus))
24             {
25                 return GetEflClassStatic();
26             }
27             else
28             {
29                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
30             }
31         }
32     }
33
34     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
35         efl_ui_focus_manager_root_focus_class_get();
36     /// <summary>Initializes a new instance of the <see cref="ManagerRootFocus"/> class.</summary>
37     /// <param name="parent">Parent instance.</param>
38     public ManagerRootFocus(Efl.Object parent= null
39             ) : base(efl_ui_focus_manager_root_focus_class_get(), typeof(ManagerRootFocus), parent)
40     {
41         FinishInstantiation();
42     }
43
44     /// <summary>Initializes a new instance of the <see cref="ManagerRootFocus"/> class.
45     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
46     /// <param name="raw">The native pointer to be wrapped.</param>
47     protected ManagerRootFocus(System.IntPtr raw) : base(raw)
48     {
49             }
50
51     /// <summary>Initializes a new instance of the <see cref="ManagerRootFocus"/> class.
52     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
53     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
54     /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
55     /// <param name="parent">The Efl.Object parent of this instance.</param>
56     protected ManagerRootFocus(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
57     {
58     }
59
60     /// <summary>Verifies if the given object is equal to this one.</summary>
61     /// <param name="instance">The object to compare to.</param>
62     /// <returns>True if both objects point to the same native object.</returns>
63     public override bool Equals(object instance)
64     {
65         var other = instance as Efl.Object;
66         if (other == null)
67         {
68             return false;
69         }
70         return this.NativeHandle == other.NativeHandle;
71     }
72
73     /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
74     /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
75     public override int GetHashCode()
76     {
77         return this.NativeHandle.ToInt32();
78     }
79
80     /// <summary>Turns the native pointer into a string representation.</summary>
81     /// <returns>A string with the type and the native pointer for this object.</returns>
82     public override String ToString()
83     {
84         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
85     }
86
87     /// <summary>The default replacement object for the case that there is no focusable object inside the manager is the root object. However, you can change this by setting this value to something else. <c>null</c> is triggered as the same value as Efl.Ui.Focus.Manager.root.get</summary>
88     /// <returns>Canvas object</returns>
89     virtual public Efl.Canvas.Object GetCanvasObject() {
90          var _ret_var = Efl.Ui.Focus.ManagerRootFocus.NativeMethods.efl_ui_focus_manager_root_focus_canvas_object_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
91         Eina.Error.RaiseIfUnhandledException();
92         return _ret_var;
93  }
94     /// <summary>The default replacement object for the case that there is no focusable object inside the manager is the root object. However, you can change this by setting this value to something else. <c>null</c> is triggered as the same value as Efl.Ui.Focus.Manager.root.get</summary>
95     /// <param name="canvas_object">Canvas object</param>
96     virtual public void SetCanvasObject(Efl.Canvas.Object canvas_object) {
97                                  Efl.Ui.Focus.ManagerRootFocus.NativeMethods.efl_ui_focus_manager_root_focus_canvas_object_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),canvas_object);
98         Eina.Error.RaiseIfUnhandledException();
99                          }
100     /// <summary>The default replacement object for the case that there is no focusable object inside the manager is the root object. However, you can change this by setting this value to something else. <c>null</c> is triggered as the same value as Efl.Ui.Focus.Manager.root.get</summary>
101 /// <value>Canvas object</value>
102     public Efl.Canvas.Object CanvasObject {
103         get { return GetCanvasObject(); }
104         set { SetCanvasObject(value); }
105     }
106     private static IntPtr GetEflClassStatic()
107     {
108         return Efl.Ui.Focus.ManagerRootFocus.efl_ui_focus_manager_root_focus_class_get();
109     }
110     /// <summary>Wrapper for native methods and virtual method delegates.
111     /// For internal use by generated code only.</summary>
112     public new class NativeMethods : Efl.Ui.Focus.ManagerCalc.NativeMethods
113     {
114         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Elementary);
115         /// <summary>Gets the list of Eo operations to override.</summary>
116         /// <returns>The list of Eo operations to be overload.</returns>
117         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
118         {
119             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
120             var methods = Efl.Eo.Globals.GetUserMethods(type);
121
122             if (efl_ui_focus_manager_root_focus_canvas_object_get_static_delegate == null)
123             {
124                 efl_ui_focus_manager_root_focus_canvas_object_get_static_delegate = new efl_ui_focus_manager_root_focus_canvas_object_get_delegate(canvas_object_get);
125             }
126
127             if (methods.FirstOrDefault(m => m.Name == "GetCanvasObject") != null)
128             {
129                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_focus_canvas_object_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_focus_canvas_object_get_static_delegate) });
130             }
131
132             if (efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate == null)
133             {
134                 efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate = new efl_ui_focus_manager_root_focus_canvas_object_set_delegate(canvas_object_set);
135             }
136
137             if (methods.FirstOrDefault(m => m.Name == "SetCanvasObject") != null)
138             {
139                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_focus_manager_root_focus_canvas_object_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate) });
140             }
141
142             descs.AddRange(base.GetEoOps(type));
143             return descs;
144         }
145         /// <summary>Returns the Eo class for the native methods of this class.</summary>
146         /// <returns>The native class pointer.</returns>
147         public override IntPtr GetEflClass()
148         {
149             return Efl.Ui.Focus.ManagerRootFocus.efl_ui_focus_manager_root_focus_class_get();
150         }
151
152         #pragma warning disable CA1707, SA1300, SA1600
153
154         [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
155         private delegate Efl.Canvas.Object efl_ui_focus_manager_root_focus_canvas_object_get_delegate(System.IntPtr obj, System.IntPtr pd);
156
157         [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
158         public delegate Efl.Canvas.Object efl_ui_focus_manager_root_focus_canvas_object_get_api_delegate(System.IntPtr obj);
159
160         public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_root_focus_canvas_object_get_api_delegate> efl_ui_focus_manager_root_focus_canvas_object_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_root_focus_canvas_object_get_api_delegate>(Module, "efl_ui_focus_manager_root_focus_canvas_object_get");
161
162         private static Efl.Canvas.Object canvas_object_get(System.IntPtr obj, System.IntPtr pd)
163         {
164             Eina.Log.Debug("function efl_ui_focus_manager_root_focus_canvas_object_get was called");
165             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
166             if (wrapper != null)
167             {
168             Efl.Canvas.Object _ret_var = default(Efl.Canvas.Object);
169                 try
170                 {
171                     _ret_var = ((ManagerRootFocus)wrapper).GetCanvasObject();
172                 }
173                 catch (Exception e)
174                 {
175                     Eina.Log.Warning($"Callback error: {e.ToString()}");
176                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
177                 }
178
179         return _ret_var;
180
181             }
182             else
183             {
184                 return efl_ui_focus_manager_root_focus_canvas_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
185             }
186         }
187
188         private static efl_ui_focus_manager_root_focus_canvas_object_get_delegate efl_ui_focus_manager_root_focus_canvas_object_get_static_delegate;
189
190         
191         private delegate void efl_ui_focus_manager_root_focus_canvas_object_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Object canvas_object);
192
193         
194         public delegate void efl_ui_focus_manager_root_focus_canvas_object_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Object canvas_object);
195
196         public static Efl.Eo.FunctionWrapper<efl_ui_focus_manager_root_focus_canvas_object_set_api_delegate> efl_ui_focus_manager_root_focus_canvas_object_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_focus_manager_root_focus_canvas_object_set_api_delegate>(Module, "efl_ui_focus_manager_root_focus_canvas_object_set");
197
198         private static void canvas_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Object canvas_object)
199         {
200             Eina.Log.Debug("function efl_ui_focus_manager_root_focus_canvas_object_set was called");
201             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
202             if (wrapper != null)
203             {
204                                     
205                 try
206                 {
207                     ((ManagerRootFocus)wrapper).SetCanvasObject(canvas_object);
208                 }
209                 catch (Exception e)
210                 {
211                     Eina.Log.Warning($"Callback error: {e.ToString()}");
212                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
213                 }
214
215                         
216             }
217             else
218             {
219                 efl_ui_focus_manager_root_focus_canvas_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), canvas_object);
220             }
221         }
222
223         private static efl_ui_focus_manager_root_focus_canvas_object_set_delegate efl_ui_focus_manager_root_focus_canvas_object_set_static_delegate;
224
225         #pragma warning restore CA1707, SA1300, SA1600
226
227 }
228 }
229 }
230
231 }
232
233 }
234