[EflSharp] Update Circle and efl cs files (#995)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_ui_spotlight_manager_scroll.eo.cs
1 #define EFL_BETA
2 #pragma warning disable CS1591
3 using System;
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
6 using System.Linq;
7 using System.Threading;
8 using System.ComponentModel;
9 namespace Efl {
10
11 namespace Ui {
12
13 namespace Spotlight {
14
15 /// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
16 [Efl.Ui.Spotlight.ManagerScroll.NativeMethods]
17 [Efl.Eo.BindingEntity]
18 public class ManagerScroll : Efl.Ui.Spotlight.Manager
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(ManagerScroll))
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_manager_scroll_class_get();
38     /// <summary>Initializes a new instance of the <see cref="ManagerScroll"/> class.</summary>
39     /// <param name="parent">Parent instance.</param>
40     public ManagerScroll(Efl.Object parent= null
41             ) : base(efl_ui_spotlight_manager_scroll_class_get(), parent)
42     {
43         FinishInstantiation();
44     }
45
46     /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
47     /// Do not call this constructor directly.</summary>
48     /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
49     protected ManagerScroll(ConstructingHandle ch) : base(ch)
50     {
51     }
52
53     /// <summary>Initializes a new instance of the <see cref="ManagerScroll"/> class.
54     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
55     /// <param name="wh">The native pointer to be wrapped.</param>
56     protected ManagerScroll(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
57     {
58     }
59
60     /// <summary>Initializes a new instance of the <see cref="ManagerScroll"/> class.
61     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
62     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
63     /// <param name="parent">The Efl.Object parent of this instance.</param>
64     protected ManagerScroll(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
65     {
66     }
67
68     /// <summary>Blocking of scrolling
69     /// This function will block scrolling movement (by input of a user). You can disable scrolling movement. The default value is <c>false</c>, where the scrolling movement is allowed.</summary>
70     /// <returns><c>true</c> if block scrolling movement, <c>false</c> otherwise</returns>
71     virtual public bool GetScrollBlock() {
72          var _ret_var = Efl.Ui.Spotlight.ManagerScroll.NativeMethods.efl_ui_spotlight_manager_scroll_block_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
73         Eina.Error.RaiseIfUnhandledException();
74         return _ret_var;
75  }
76     /// <summary>Blocking of scrolling
77     /// This function will block scrolling movement (by input of a user). You can disable scrolling movement. The default value is <c>false</c>, where the scrolling movement is allowed.</summary>
78     /// <param name="scroll_block"><c>true</c> if block scrolling movement, <c>false</c> otherwise</param>
79     virtual public void SetScrollBlock(bool scroll_block) {
80                                  Efl.Ui.Spotlight.ManagerScroll.NativeMethods.efl_ui_spotlight_manager_scroll_block_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),scroll_block);
81         Eina.Error.RaiseIfUnhandledException();
82                          }
83     /// <summary>Blocking of scrolling
84     /// This function will block scrolling movement (by input of a user). You can disable scrolling movement. The default value is <c>false</c>, where the scrolling movement is allowed.</summary>
85     /// <value><c>true</c> if block scrolling movement, <c>false</c> otherwise</value>
86     public bool ScrollBlock {
87         get { return GetScrollBlock(); }
88         set { SetScrollBlock(value); }
89     }
90     private static IntPtr GetEflClassStatic()
91     {
92         return Efl.Ui.Spotlight.ManagerScroll.efl_ui_spotlight_manager_scroll_class_get();
93     }
94     /// <summary>Wrapper for native methods and virtual method delegates.
95     /// For internal use by generated code only.</summary>
96     public new class NativeMethods : Efl.Ui.Spotlight.Manager.NativeMethods
97     {
98         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Elementary);
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             var methods = Efl.Eo.Globals.GetUserMethods(type);
105
106             if (efl_ui_spotlight_manager_scroll_block_get_static_delegate == null)
107             {
108                 efl_ui_spotlight_manager_scroll_block_get_static_delegate = new efl_ui_spotlight_manager_scroll_block_get_delegate(scroll_block_get);
109             }
110
111             if (methods.FirstOrDefault(m => m.Name == "GetScrollBlock") != null)
112             {
113                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_scroll_block_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_scroll_block_get_static_delegate) });
114             }
115
116             if (efl_ui_spotlight_manager_scroll_block_set_static_delegate == null)
117             {
118                 efl_ui_spotlight_manager_scroll_block_set_static_delegate = new efl_ui_spotlight_manager_scroll_block_set_delegate(scroll_block_set);
119             }
120
121             if (methods.FirstOrDefault(m => m.Name == "SetScrollBlock") != null)
122             {
123                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_spotlight_manager_scroll_block_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_spotlight_manager_scroll_block_set_static_delegate) });
124             }
125
126             descs.AddRange(base.GetEoOps(type));
127             return descs;
128         }
129         /// <summary>Returns the Eo class for the native methods of this class.</summary>
130         /// <returns>The native class pointer.</returns>
131         public override IntPtr GetEflClass()
132         {
133             return Efl.Ui.Spotlight.ManagerScroll.efl_ui_spotlight_manager_scroll_class_get();
134         }
135
136         #pragma warning disable CA1707, CS1591, SA1300, SA1600
137
138         [return: MarshalAs(UnmanagedType.U1)]
139         private delegate bool efl_ui_spotlight_manager_scroll_block_get_delegate(System.IntPtr obj, System.IntPtr pd);
140
141         [return: MarshalAs(UnmanagedType.U1)]
142         public delegate bool efl_ui_spotlight_manager_scroll_block_get_api_delegate(System.IntPtr obj);
143
144         public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_scroll_block_get_api_delegate> efl_ui_spotlight_manager_scroll_block_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_scroll_block_get_api_delegate>(Module, "efl_ui_spotlight_manager_scroll_block_get");
145
146         private static bool scroll_block_get(System.IntPtr obj, System.IntPtr pd)
147         {
148             Eina.Log.Debug("function efl_ui_spotlight_manager_scroll_block_get was called");
149             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
150             if (ws != null)
151             {
152             bool _ret_var = default(bool);
153                 try
154                 {
155                     _ret_var = ((ManagerScroll)ws.Target).GetScrollBlock();
156                 }
157                 catch (Exception e)
158                 {
159                     Eina.Log.Warning($"Callback error: {e.ToString()}");
160                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
161                 }
162
163         return _ret_var;
164
165             }
166             else
167             {
168                 return efl_ui_spotlight_manager_scroll_block_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
169             }
170         }
171
172         private static efl_ui_spotlight_manager_scroll_block_get_delegate efl_ui_spotlight_manager_scroll_block_get_static_delegate;
173
174         
175         private delegate void efl_ui_spotlight_manager_scroll_block_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scroll_block);
176
177         
178         public delegate void efl_ui_spotlight_manager_scroll_block_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scroll_block);
179
180         public static Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_scroll_block_set_api_delegate> efl_ui_spotlight_manager_scroll_block_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_spotlight_manager_scroll_block_set_api_delegate>(Module, "efl_ui_spotlight_manager_scroll_block_set");
181
182         private static void scroll_block_set(System.IntPtr obj, System.IntPtr pd, bool scroll_block)
183         {
184             Eina.Log.Debug("function efl_ui_spotlight_manager_scroll_block_set was called");
185             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
186             if (ws != null)
187             {
188                                     
189                 try
190                 {
191                     ((ManagerScroll)ws.Target).SetScrollBlock(scroll_block);
192                 }
193                 catch (Exception e)
194                 {
195                     Eina.Log.Warning($"Callback error: {e.ToString()}");
196                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
197                 }
198
199                         
200             }
201             else
202             {
203                 efl_ui_spotlight_manager_scroll_block_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), scroll_block);
204             }
205         }
206
207         private static efl_ui_spotlight_manager_scroll_block_set_delegate efl_ui_spotlight_manager_scroll_block_set_static_delegate;
208
209         #pragma warning restore CA1707, CS1591, SA1300, SA1600
210
211 }
212 }
213 }
214
215 }
216
217 }
218
219 #if EFL_BETA
220 #pragma warning disable CS1591
221 public static class Efl_Ui_SpotlightManagerScroll_ExtensionMethods {
222     public static Efl.BindableProperty<bool> ScrollBlock<T>(this Efl.Ui.ItemFactory<T> fac, Efl.Csharp.ExtensionTag<Efl.Ui.Spotlight.ManagerScroll, T>magic = null) where T : Efl.Ui.Spotlight.ManagerScroll {
223         return new Efl.BindableProperty<bool>("scroll_block", fac);
224     }
225
226 }
227 #pragma warning restore CS1591
228 #endif