2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
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
20 /// <summary>Pointer to the native class description.</summary>
21 public override System.IntPtr NativeClass
25 if (((object)this).GetType() == typeof(ManagerScroll))
27 return GetEflClassStatic();
31 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
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)
43 FinishInstantiation();
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)
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)
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)
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();
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();
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); }
90 private static IntPtr GetEflClassStatic()
92 return Efl.Ui.Spotlight.ManagerScroll.efl_ui_spotlight_manager_scroll_class_get();
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
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)
103 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
104 var methods = Efl.Eo.Globals.GetUserMethods(type);
106 if (efl_ui_spotlight_manager_scroll_block_get_static_delegate == null)
108 efl_ui_spotlight_manager_scroll_block_get_static_delegate = new efl_ui_spotlight_manager_scroll_block_get_delegate(scroll_block_get);
111 if (methods.FirstOrDefault(m => m.Name == "GetScrollBlock") != null)
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) });
116 if (efl_ui_spotlight_manager_scroll_block_set_static_delegate == null)
118 efl_ui_spotlight_manager_scroll_block_set_static_delegate = new efl_ui_spotlight_manager_scroll_block_set_delegate(scroll_block_set);
121 if (methods.FirstOrDefault(m => m.Name == "SetScrollBlock") != null)
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) });
126 descs.AddRange(base.GetEoOps(type));
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()
133 return Efl.Ui.Spotlight.ManagerScroll.efl_ui_spotlight_manager_scroll_class_get();
136 #pragma warning disable CA1707, CS1591, SA1300, SA1600
138 [return: MarshalAs(UnmanagedType.U1)]
139 private delegate bool efl_ui_spotlight_manager_scroll_block_get_delegate(System.IntPtr obj, System.IntPtr pd);
141 [return: MarshalAs(UnmanagedType.U1)]
142 public delegate bool efl_ui_spotlight_manager_scroll_block_get_api_delegate(System.IntPtr obj);
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");
146 private static bool scroll_block_get(System.IntPtr obj, System.IntPtr pd)
148 Eina.Log.Debug("function efl_ui_spotlight_manager_scroll_block_get was called");
149 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
152 bool _ret_var = default(bool);
155 _ret_var = ((ManagerScroll)ws.Target).GetScrollBlock();
159 Eina.Log.Warning($"Callback error: {e.ToString()}");
160 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
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)));
172 private static efl_ui_spotlight_manager_scroll_block_get_delegate efl_ui_spotlight_manager_scroll_block_get_static_delegate;
175 private delegate void efl_ui_spotlight_manager_scroll_block_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool scroll_block);
178 public delegate void efl_ui_spotlight_manager_scroll_block_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool scroll_block);
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");
182 private static void scroll_block_set(System.IntPtr obj, System.IntPtr pd, bool scroll_block)
184 Eina.Log.Debug("function efl_ui_spotlight_manager_scroll_block_set was called");
185 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
191 ((ManagerScroll)ws.Target).SetScrollBlock(scroll_block);
195 Eina.Log.Warning($"Callback error: {e.ToString()}");
196 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
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);
207 private static efl_ui_spotlight_manager_scroll_block_set_delegate efl_ui_spotlight_manager_scroll_block_set_static_delegate;
209 #pragma warning restore CA1707, CS1591, SA1300, SA1600
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);
227 #pragma warning restore CS1591