[MediaContent] Fix grammatical error in description (#943)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_spotlight_indicator.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 Spotlight {
13
14 /// <summary>Object used by <see cref="Efl.Ui.Spotlight.Container"/> to render an indication of the active widgets&apos;s position among the rest of the container&apos;s widgets.
15 /// An example would be Android&apos;s little dots in the home screen.</summary>
16 [Efl.Ui.Spotlight.Indicator.NativeMethods]
17 [Efl.Eo.BindingEntity]
18 public abstract class Indicator : Efl.Object
19 {
20     ///<summary>Pointer to the native class description.</summary>
21     public override System.IntPtr NativeClass
22     {
23         get
24         {
25             if (((object)this).GetType() == typeof(Indicator))
26             {
27                 return GetEflClassStatic();
28             }
29             else
30             {
31                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
32             }
33         }
34     }
35
36     [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
37         efl_ui_spotlight_indicator_class_get();
38     /// <summary>Initializes a new instance of the <see cref="Indicator"/> class.</summary>
39     /// <param name="parent">Parent instance.</param>
40     public Indicator(Efl.Object parent= null
41             ) : base(efl_ui_spotlight_indicator_class_get(), parent)
42     {
43         FinishInstantiation();
44     }
45
46     /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
47     /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
48     protected Indicator(ConstructingHandle ch) : base(ch)
49     {
50     }
51
52     /// <summary>Initializes a new instance of the <see cref="Indicator"/> class.
53     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
54     /// <param name="wh">The native pointer to be wrapped.</param>
55     protected Indicator(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
56     {
57     }
58
59     [Efl.Eo.PrivateNativeClass]
60     private class IndicatorRealized : Indicator
61     {
62         private IndicatorRealized(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
63         {
64         }
65     }
66     /// <summary>Initializes a new instance of the <see cref="Indicator"/> class.
67     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
68     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
69     /// <param name="parent">The Efl.Object parent of this instance.</param>
70     protected Indicator(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
71     {
72     }
73
74     /// <summary>This method is called the first time an <see cref="Efl.Ui.Spotlight.Indicator"/> is assigned to an <see cref="Efl.Ui.Spotlight.Container"/>, binding them together.
75     /// This call can be used to setup the indicator part of the <c>spotlight</c>.
76     /// 
77     /// The Active View of the container (if there is any) will be informed to the indicator by a later call to <see cref="Efl.Ui.Spotlight.Indicator.UpdatePosition"/>.</summary>
78     /// <param name="spotlight">The container to bind this indicator to.</param>
79     virtual public void Bind(Efl.Ui.Spotlight.Container spotlight) {
80                                  Efl.Ui.Spotlight.Indicator.NativeMethods.efl_ui_spotlight_indicator_bind_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),spotlight);
81         Eina.Error.RaiseIfUnhandledException();
82                          }
83     /// <summary>A <c>subobj</c> has been added at position <c>index</c> in the bound container.
84     /// The manager should check the container&apos;s <see cref="Efl.Ui.Spotlight.Container.ActiveIndex"/> since indices might have shifted due to the insertion of the new object.</summary>
85     /// <param name="subobj">The new object that has been added to the container.</param>
86     /// <param name="index">The index of the new object in the container&apos;s list.</param>
87     virtual public void AddContent(Efl.Gfx.IEntity subobj, int index) {
88                                                          Efl.Ui.Spotlight.Indicator.NativeMethods.efl_ui_spotlight_indicator_content_add_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, index);
89         Eina.Error.RaiseIfUnhandledException();
90                                          }
91     /// <summary>The <c>subobj</c> at position <c>index</c> in the bound container has been removed.
92     /// The manager should check the container&apos;s <see cref="Efl.Ui.Spotlight.Container.ActiveIndex"/> since indices might have shifted due to the removal of the object.</summary>
93     /// <param name="subobj">The object being removed from the container.</param>
94     /// <param name="index">The index this object had in the container&apos;s list.</param>
95     virtual public void DelContent(Efl.Gfx.IEntity subobj, int index) {
96                                                          Efl.Ui.Spotlight.Indicator.NativeMethods.efl_ui_spotlight_indicator_content_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),subobj, index);
97         Eina.Error.RaiseIfUnhandledException();
98                                          }
99     /// <summary>This method tells the indicator that <see cref="Efl.Ui.Spotlight.Container.ActiveIndex"/> has changed in the bound container.
100     /// <c>position</c> ranges from -1 to the number of views in the bound container (<see cref="Efl.IContainer.ContentCount"/>). Notice this allows moving to a position before the first view or past the last view, which might happen if the view is thumb-scrolled out-of-bounds. Indicators can choose to render these out-of-bounds positions or not.
101     /// 
102     /// Fractional values indicate positions in-between two views and should be respected to obtain a smooth transition.</summary>
103     /// <param name="position">The index of the active view, or a value in-between views if a transition is currently playing.</param>
104     virtual public void UpdatePosition(double position) {
105                                  Efl.Ui.Spotlight.Indicator.NativeMethods.efl_ui_spotlight_indicator_position_update_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),position);
106         Eina.Error.RaiseIfUnhandledException();
107                          }
108     private static IntPtr GetEflClassStatic()
109     {
110         return Efl.Ui.Spotlight.Indicator.efl_ui_spotlight_indicator_class_get();
111     }
112     /// <summary>Wrapper for native methods and virtual method delegates.
113     /// For internal use by generated code only.</summary>
114     public new class NativeMethods : Efl.Object.NativeMethods
115     {
116         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Elementary);
117         /// <summary>Gets the list of Eo operations to override.</summary>
118         /// <returns>The list of Eo operations to be overload.</returns>
119         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
120         {
121             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
122             var methods = Efl.Eo.Globals.GetUserMethods(type);
123
124             if (efl_ui_spotlight_indicator_bind_static_delegate == null)
125             {
126                 efl_ui_spotlight_indicator_bind_static_delegate = new efl_ui_spotlight_indicator_bind_delegate(bind);
127             }
128
129             if (methods.FirstOrDefault(m => m.Name == "Bind") != null)
130             {
131                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_indicator_bind"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_indicator_bind_static_delegate) });
132             }
133
134             if (efl_ui_spotlight_indicator_content_add_static_delegate == null)
135             {
136                 efl_ui_spotlight_indicator_content_add_static_delegate = new efl_ui_spotlight_indicator_content_add_delegate(content_add);
137             }
138
139             if (methods.FirstOrDefault(m => m.Name == "AddContent") != null)
140             {
141                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_indicator_content_add"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_indicator_content_add_static_delegate) });
142             }
143
144             if (efl_ui_spotlight_indicator_content_del_static_delegate == null)
145             {
146                 efl_ui_spotlight_indicator_content_del_static_delegate = new efl_ui_spotlight_indicator_content_del_delegate(content_del);
147             }
148
149             if (methods.FirstOrDefault(m => m.Name == "DelContent") != null)
150             {
151                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_indicator_content_del"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_indicator_content_del_static_delegate) });
152             }
153
154             if (efl_ui_spotlight_indicator_position_update_static_delegate == null)
155             {
156                 efl_ui_spotlight_indicator_position_update_static_delegate = new efl_ui_spotlight_indicator_position_update_delegate(position_update);
157             }
158
159             if (methods.FirstOrDefault(m => m.Name == "UpdatePosition") != null)
160             {
161                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_indicator_position_update"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_indicator_position_update_static_delegate) });
162             }
163
164             descs.AddRange(base.GetEoOps(type));
165             return descs;
166         }
167         /// <summary>Returns the Eo class for the native methods of this class.</summary>
168         /// <returns>The native class pointer.</returns>
169         public override IntPtr GetEflClass()
170         {
171             return Efl.Ui.Spotlight.Indicator.efl_ui_spotlight_indicator_class_get();
172         }
173
174         #pragma warning disable CA1707, CS1591, SA1300, SA1600
175
176         
177         private delegate void efl_ui_spotlight_indicator_bind_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Spotlight.Container spotlight);
178
179         
180         public delegate void efl_ui_spotlight_indicator_bind_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Ui.Spotlight.Container spotlight);
181
182         public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_indicator_bind_api_delegate> efl_ui_spotlight_indicator_bind_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_indicator_bind_api_delegate>(Module, "efl_ui_spotlight_indicator_bind");
183
184         private static void bind(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Spotlight.Container spotlight)
185         {
186             Eina.Log.Debug("function efl_ui_spotlight_indicator_bind was called");
187             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
188             if (ws != null)
189             {
190                                     
191                 try
192                 {
193                     ((Indicator)ws.Target).Bind(spotlight);
194                 }
195                 catch (Exception e)
196                 {
197                     Eina.Log.Warning($"Callback error: {e.ToString()}");
198                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
199                 }
200
201                         
202             }
203             else
204             {
205                 efl_ui_spotlight_indicator_bind_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), spotlight);
206             }
207         }
208
209         private static efl_ui_spotlight_indicator_bind_delegate efl_ui_spotlight_indicator_bind_static_delegate;
210
211         
212         private delegate void efl_ui_spotlight_indicator_content_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj,  int index);
213
214         
215         public delegate void efl_ui_spotlight_indicator_content_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj,  int index);
216
217         public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_indicator_content_add_api_delegate> efl_ui_spotlight_indicator_content_add_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_indicator_content_add_api_delegate>(Module, "efl_ui_spotlight_indicator_content_add");
218
219         private static void content_add(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index)
220         {
221             Eina.Log.Debug("function efl_ui_spotlight_indicator_content_add was called");
222             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
223             if (ws != null)
224             {
225                                                             
226                 try
227                 {
228                     ((Indicator)ws.Target).AddContent(subobj, index);
229                 }
230                 catch (Exception e)
231                 {
232                     Eina.Log.Warning($"Callback error: {e.ToString()}");
233                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
234                 }
235
236                                         
237             }
238             else
239             {
240                 efl_ui_spotlight_indicator_content_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index);
241             }
242         }
243
244         private static efl_ui_spotlight_indicator_content_add_delegate efl_ui_spotlight_indicator_content_add_static_delegate;
245
246         
247         private delegate void efl_ui_spotlight_indicator_content_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj,  int index);
248
249         
250         public delegate void efl_ui_spotlight_indicator_content_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity subobj,  int index);
251
252         public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_indicator_content_del_api_delegate> efl_ui_spotlight_indicator_content_del_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_indicator_content_del_api_delegate>(Module, "efl_ui_spotlight_indicator_content_del");
253
254         private static void content_del(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity subobj, int index)
255         {
256             Eina.Log.Debug("function efl_ui_spotlight_indicator_content_del was called");
257             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
258             if (ws != null)
259             {
260                                                             
261                 try
262                 {
263                     ((Indicator)ws.Target).DelContent(subobj, index);
264                 }
265                 catch (Exception e)
266                 {
267                     Eina.Log.Warning($"Callback error: {e.ToString()}");
268                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
269                 }
270
271                                         
272             }
273             else
274             {
275                 efl_ui_spotlight_indicator_content_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), subobj, index);
276             }
277         }
278
279         private static efl_ui_spotlight_indicator_content_del_delegate efl_ui_spotlight_indicator_content_del_static_delegate;
280
281         
282         private delegate void efl_ui_spotlight_indicator_position_update_delegate(System.IntPtr obj, System.IntPtr pd,  double position);
283
284         
285         public delegate void efl_ui_spotlight_indicator_position_update_api_delegate(System.IntPtr obj,  double position);
286
287         public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_indicator_position_update_api_delegate> efl_ui_spotlight_indicator_position_update_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_indicator_position_update_api_delegate>(Module, "efl_ui_spotlight_indicator_position_update");
288
289         private static void position_update(System.IntPtr obj, System.IntPtr pd, double position)
290         {
291             Eina.Log.Debug("function efl_ui_spotlight_indicator_position_update was called");
292             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
293             if (ws != null)
294             {
295                                     
296                 try
297                 {
298                     ((Indicator)ws.Target).UpdatePosition(position);
299                 }
300                 catch (Exception e)
301                 {
302                     Eina.Log.Warning($"Callback error: {e.ToString()}");
303                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
304                 }
305
306                         
307             }
308             else
309             {
310                 efl_ui_spotlight_indicator_position_update_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position);
311             }
312         }
313
314         private static efl_ui_spotlight_indicator_position_update_delegate efl_ui_spotlight_indicator_position_update_static_delegate;
315
316         #pragma warning restore CA1707, CS1591, SA1300, SA1600
317
318 }
319 }
320 }
321
322 }
323
324 }
325