1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>Interface for autorepeating clicks.
13 /// This interface abstracts functions for enabling / disabling this feature. When enabled, keeping a button pressed will continuously emit the <c>repeated</c> event until the button is released. The time it takes until it starts emitting the event is given by <see cref="Efl.Ui.IAutorepeat.AutorepeatInitialTimeout"/>, and the time between each new emission by <see cref="Efl.Ui.IAutorepeat.AutorepeatGapTimeout"/>.</summary>
14 [Efl.Ui.IAutorepeatConcrete.NativeMethods]
15 [Efl.Eo.BindingEntity]
16 public interface IAutorepeat :
17 Efl.Eo.IWrapper, IDisposable
19 /// <summary>The initial timeout before the autorepeat event is generated.
20 /// Sets the timeout, in seconds, since the button is pressed until the first <c>repeated</c> signal is emitted. If <c>t</c> is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed.
22 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatEnabled"/> and <see cref="Efl.Ui.IAutorepeat.AutorepeatGapTimeout"/>.</summary>
23 /// <returns>Timeout in seconds.</returns>
24 double GetAutorepeatInitialTimeout();
25 /// <summary>The initial timeout before the autorepeat event is generated.
26 /// Sets the timeout, in seconds, since the button is pressed until the first <c>repeated</c> signal is emitted. If <c>t</c> is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed.
28 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatEnabled"/> and <see cref="Efl.Ui.IAutorepeat.AutorepeatGapTimeout"/>.</summary>
29 /// <param name="t">Timeout in seconds.</param>
30 void SetAutorepeatInitialTimeout(double t);
31 /// <summary>The interval between each generated autorepeat event.
32 /// After the first <c>repeated</c> event is fired, all subsequent ones will follow after a delay of <c>t</c> seconds for each.
34 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatInitialTimeout"/>.</summary>
35 /// <returns>Time interval in seconds.</returns>
36 double GetAutorepeatGapTimeout();
37 /// <summary>The interval between each generated autorepeat event.
38 /// After the first <c>repeated</c> event is fired, all subsequent ones will follow after a delay of <c>t</c> seconds for each.
40 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatInitialTimeout"/>.</summary>
41 /// <param name="t">Time interval in seconds.</param>
42 void SetAutorepeatGapTimeout(double t);
43 /// <summary>Turn on/off the autorepeat event generated when a button is kept pressed.
44 /// When off, no autorepeat is performed and buttons emit a normal <c>clicked</c> event when they are clicked.</summary>
45 /// <returns>A bool to turn on/off the repeat event generation.</returns>
46 bool GetAutorepeatEnabled();
47 /// <summary>Turn on/off the autorepeat event generated when a button is kept pressed.
48 /// When off, no autorepeat is performed and buttons emit a normal <c>clicked</c> event when they are clicked.</summary>
49 /// <param name="on">A bool to turn on/off the repeat event generation.</param>
50 void SetAutorepeatEnabled(bool on);
51 /// <summary>Called when a repeated event is emitted</summary>
52 event EventHandler RepeatedEvt;
53 /// <summary>The initial timeout before the autorepeat event is generated.
54 /// Sets the timeout, in seconds, since the button is pressed until the first <c>repeated</c> signal is emitted. If <c>t</c> is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed.
56 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatEnabled"/> and <see cref="Efl.Ui.IAutorepeat.AutorepeatGapTimeout"/>.</summary>
57 /// <value>Timeout in seconds.</value>
58 double AutorepeatInitialTimeout {
62 /// <summary>The interval between each generated autorepeat event.
63 /// After the first <c>repeated</c> event is fired, all subsequent ones will follow after a delay of <c>t</c> seconds for each.
65 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatInitialTimeout"/>.</summary>
66 /// <value>Time interval in seconds.</value>
67 double AutorepeatGapTimeout {
71 /// <summary>Turn on/off the autorepeat event generated when a button is kept pressed.
72 /// When off, no autorepeat is performed and buttons emit a normal <c>clicked</c> event when they are clicked.</summary>
73 /// <value>A bool to turn on/off the repeat event generation.</value>
74 bool AutorepeatEnabled {
79 /// <summary>Interface for autorepeating clicks.
80 /// This interface abstracts functions for enabling / disabling this feature. When enabled, keeping a button pressed will continuously emit the <c>repeated</c> event until the button is released. The time it takes until it starts emitting the event is given by <see cref="Efl.Ui.IAutorepeat.AutorepeatInitialTimeout"/>, and the time between each new emission by <see cref="Efl.Ui.IAutorepeat.AutorepeatGapTimeout"/>.</summary>
81 sealed public class IAutorepeatConcrete :
86 ///<summary>Pointer to the native class description.</summary>
87 public override System.IntPtr NativeClass
91 if (((object)this).GetType() == typeof(IAutorepeatConcrete))
93 return GetEflClassStatic();
97 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
102 /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
103 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
104 private IAutorepeatConcrete(ConstructingHandle ch) : base(ch)
108 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
109 efl_ui_autorepeat_interface_get();
110 /// <summary>Initializes a new instance of the <see cref="IAutorepeat"/> class.
111 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
112 /// <param name="wh">The native pointer to be wrapped.</param>
113 private IAutorepeatConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
117 /// <summary>Called when a repeated event is emitted</summary>
118 public event EventHandler RepeatedEvt
122 lock (eflBindingEventLock)
124 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
126 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
129 EventArgs args = EventArgs.Empty;
132 value?.Invoke(obj, args);
136 Eina.Log.Error(e.ToString());
137 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
142 string key = "_EFL_UI_AUTOREPEAT_EVENT_REPEATED";
143 AddNativeEventHandler(efl.Libs.Efl, key, callerCb, value);
149 lock (eflBindingEventLock)
151 string key = "_EFL_UI_AUTOREPEAT_EVENT_REPEATED";
152 RemoveNativeEventHandler(efl.Libs.Efl, key, value);
156 ///<summary>Method to raise event RepeatedEvt.</summary>
157 public void OnRepeatedEvt(EventArgs e)
159 var key = "_EFL_UI_AUTOREPEAT_EVENT_REPEATED";
160 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Efl, key);
161 if (desc == IntPtr.Zero)
163 Eina.Log.Error($"Failed to get native event {key}");
167 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
169 /// <summary>The initial timeout before the autorepeat event is generated.
170 /// Sets the timeout, in seconds, since the button is pressed until the first <c>repeated</c> signal is emitted. If <c>t</c> is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed.
172 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatEnabled"/> and <see cref="Efl.Ui.IAutorepeat.AutorepeatGapTimeout"/>.</summary>
173 /// <returns>Timeout in seconds.</returns>
174 public double GetAutorepeatInitialTimeout() {
175 var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(this.NativeHandle);
176 Eina.Error.RaiseIfUnhandledException();
179 /// <summary>The initial timeout before the autorepeat event is generated.
180 /// Sets the timeout, in seconds, since the button is pressed until the first <c>repeated</c> signal is emitted. If <c>t</c> is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed.
182 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatEnabled"/> and <see cref="Efl.Ui.IAutorepeat.AutorepeatGapTimeout"/>.</summary>
183 /// <param name="t">Timeout in seconds.</param>
184 public void SetAutorepeatInitialTimeout(double t) {
185 Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(this.NativeHandle,t);
186 Eina.Error.RaiseIfUnhandledException();
188 /// <summary>The interval between each generated autorepeat event.
189 /// After the first <c>repeated</c> event is fired, all subsequent ones will follow after a delay of <c>t</c> seconds for each.
191 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatInitialTimeout"/>.</summary>
192 /// <returns>Time interval in seconds.</returns>
193 public double GetAutorepeatGapTimeout() {
194 var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(this.NativeHandle);
195 Eina.Error.RaiseIfUnhandledException();
198 /// <summary>The interval between each generated autorepeat event.
199 /// After the first <c>repeated</c> event is fired, all subsequent ones will follow after a delay of <c>t</c> seconds for each.
201 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatInitialTimeout"/>.</summary>
202 /// <param name="t">Time interval in seconds.</param>
203 public void SetAutorepeatGapTimeout(double t) {
204 Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(this.NativeHandle,t);
205 Eina.Error.RaiseIfUnhandledException();
207 /// <summary>Turn on/off the autorepeat event generated when a button is kept pressed.
208 /// When off, no autorepeat is performed and buttons emit a normal <c>clicked</c> event when they are clicked.</summary>
209 /// <returns>A bool to turn on/off the repeat event generation.</returns>
210 public bool GetAutorepeatEnabled() {
211 var _ret_var = Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(this.NativeHandle);
212 Eina.Error.RaiseIfUnhandledException();
215 /// <summary>Turn on/off the autorepeat event generated when a button is kept pressed.
216 /// When off, no autorepeat is performed and buttons emit a normal <c>clicked</c> event when they are clicked.</summary>
217 /// <param name="on">A bool to turn on/off the repeat event generation.</param>
218 public void SetAutorepeatEnabled(bool on) {
219 Efl.Ui.IAutorepeatConcrete.NativeMethods.efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(this.NativeHandle,on);
220 Eina.Error.RaiseIfUnhandledException();
222 /// <summary>The initial timeout before the autorepeat event is generated.
223 /// Sets the timeout, in seconds, since the button is pressed until the first <c>repeated</c> signal is emitted. If <c>t</c> is 0.0 or less, there won't be any delay and the event will be fired the moment the button is pressed.
225 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatEnabled"/> and <see cref="Efl.Ui.IAutorepeat.AutorepeatGapTimeout"/>.</summary>
226 /// <value>Timeout in seconds.</value>
227 public double AutorepeatInitialTimeout {
228 get { return GetAutorepeatInitialTimeout(); }
229 set { SetAutorepeatInitialTimeout(value); }
231 /// <summary>The interval between each generated autorepeat event.
232 /// After the first <c>repeated</c> event is fired, all subsequent ones will follow after a delay of <c>t</c> seconds for each.
234 /// See also <see cref="Efl.Ui.IAutorepeat.AutorepeatInitialTimeout"/>.</summary>
235 /// <value>Time interval in seconds.</value>
236 public double AutorepeatGapTimeout {
237 get { return GetAutorepeatGapTimeout(); }
238 set { SetAutorepeatGapTimeout(value); }
240 /// <summary>Turn on/off the autorepeat event generated when a button is kept pressed.
241 /// When off, no autorepeat is performed and buttons emit a normal <c>clicked</c> event when they are clicked.</summary>
242 /// <value>A bool to turn on/off the repeat event generation.</value>
243 public bool AutorepeatEnabled {
244 get { return GetAutorepeatEnabled(); }
245 set { SetAutorepeatEnabled(value); }
247 private static IntPtr GetEflClassStatic()
249 return Efl.Ui.IAutorepeatConcrete.efl_ui_autorepeat_interface_get();
251 /// <summary>Wrapper for native methods and virtual method delegates.
252 /// For internal use by generated code only.</summary>
253 public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
255 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
256 /// <summary>Gets the list of Eo operations to override.</summary>
257 /// <returns>The list of Eo operations to be overload.</returns>
258 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
260 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
261 var methods = Efl.Eo.Globals.GetUserMethods(type);
263 if (efl_ui_autorepeat_initial_timeout_get_static_delegate == null)
265 efl_ui_autorepeat_initial_timeout_get_static_delegate = new efl_ui_autorepeat_initial_timeout_get_delegate(autorepeat_initial_timeout_get);
268 if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatInitialTimeout") != null)
270 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_initial_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_get_static_delegate) });
273 if (efl_ui_autorepeat_initial_timeout_set_static_delegate == null)
275 efl_ui_autorepeat_initial_timeout_set_static_delegate = new efl_ui_autorepeat_initial_timeout_set_delegate(autorepeat_initial_timeout_set);
278 if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatInitialTimeout") != null)
280 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_initial_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_initial_timeout_set_static_delegate) });
283 if (efl_ui_autorepeat_gap_timeout_get_static_delegate == null)
285 efl_ui_autorepeat_gap_timeout_get_static_delegate = new efl_ui_autorepeat_gap_timeout_get_delegate(autorepeat_gap_timeout_get);
288 if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatGapTimeout") != null)
290 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_gap_timeout_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_get_static_delegate) });
293 if (efl_ui_autorepeat_gap_timeout_set_static_delegate == null)
295 efl_ui_autorepeat_gap_timeout_set_static_delegate = new efl_ui_autorepeat_gap_timeout_set_delegate(autorepeat_gap_timeout_set);
298 if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatGapTimeout") != null)
300 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_gap_timeout_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_gap_timeout_set_static_delegate) });
303 if (efl_ui_autorepeat_enabled_get_static_delegate == null)
305 efl_ui_autorepeat_enabled_get_static_delegate = new efl_ui_autorepeat_enabled_get_delegate(autorepeat_enabled_get);
308 if (methods.FirstOrDefault(m => m.Name == "GetAutorepeatEnabled") != null)
310 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_enabled_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_get_static_delegate) });
313 if (efl_ui_autorepeat_enabled_set_static_delegate == null)
315 efl_ui_autorepeat_enabled_set_static_delegate = new efl_ui_autorepeat_enabled_set_delegate(autorepeat_enabled_set);
318 if (methods.FirstOrDefault(m => m.Name == "SetAutorepeatEnabled") != null)
320 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_ui_autorepeat_enabled_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_autorepeat_enabled_set_static_delegate) });
325 /// <summary>Returns the Eo class for the native methods of this class.</summary>
326 /// <returns>The native class pointer.</returns>
327 public override IntPtr GetEflClass()
329 return Efl.Ui.IAutorepeatConcrete.efl_ui_autorepeat_interface_get();
332 #pragma warning disable CA1707, CS1591, SA1300, SA1600
335 private delegate double efl_ui_autorepeat_initial_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd);
338 public delegate double efl_ui_autorepeat_initial_timeout_get_api_delegate(System.IntPtr obj);
340 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_initial_timeout_get_api_delegate> efl_ui_autorepeat_initial_timeout_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_initial_timeout_get_api_delegate>(Module, "efl_ui_autorepeat_initial_timeout_get");
342 private static double autorepeat_initial_timeout_get(System.IntPtr obj, System.IntPtr pd)
344 Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_get was called");
345 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
348 double _ret_var = default(double);
351 _ret_var = ((IAutorepeat)ws.Target).GetAutorepeatInitialTimeout();
355 Eina.Log.Warning($"Callback error: {e.ToString()}");
356 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
364 return efl_ui_autorepeat_initial_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
368 private static efl_ui_autorepeat_initial_timeout_get_delegate efl_ui_autorepeat_initial_timeout_get_static_delegate;
371 private delegate void efl_ui_autorepeat_initial_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t);
374 public delegate void efl_ui_autorepeat_initial_timeout_set_api_delegate(System.IntPtr obj, double t);
376 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_initial_timeout_set_api_delegate> efl_ui_autorepeat_initial_timeout_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_initial_timeout_set_api_delegate>(Module, "efl_ui_autorepeat_initial_timeout_set");
378 private static void autorepeat_initial_timeout_set(System.IntPtr obj, System.IntPtr pd, double t)
380 Eina.Log.Debug("function efl_ui_autorepeat_initial_timeout_set was called");
381 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
387 ((IAutorepeat)ws.Target).SetAutorepeatInitialTimeout(t);
391 Eina.Log.Warning($"Callback error: {e.ToString()}");
392 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
399 efl_ui_autorepeat_initial_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t);
403 private static efl_ui_autorepeat_initial_timeout_set_delegate efl_ui_autorepeat_initial_timeout_set_static_delegate;
406 private delegate double efl_ui_autorepeat_gap_timeout_get_delegate(System.IntPtr obj, System.IntPtr pd);
409 public delegate double efl_ui_autorepeat_gap_timeout_get_api_delegate(System.IntPtr obj);
411 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_gap_timeout_get_api_delegate> efl_ui_autorepeat_gap_timeout_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_gap_timeout_get_api_delegate>(Module, "efl_ui_autorepeat_gap_timeout_get");
413 private static double autorepeat_gap_timeout_get(System.IntPtr obj, System.IntPtr pd)
415 Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_get was called");
416 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
419 double _ret_var = default(double);
422 _ret_var = ((IAutorepeat)ws.Target).GetAutorepeatGapTimeout();
426 Eina.Log.Warning($"Callback error: {e.ToString()}");
427 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
435 return efl_ui_autorepeat_gap_timeout_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
439 private static efl_ui_autorepeat_gap_timeout_get_delegate efl_ui_autorepeat_gap_timeout_get_static_delegate;
442 private delegate void efl_ui_autorepeat_gap_timeout_set_delegate(System.IntPtr obj, System.IntPtr pd, double t);
445 public delegate void efl_ui_autorepeat_gap_timeout_set_api_delegate(System.IntPtr obj, double t);
447 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_gap_timeout_set_api_delegate> efl_ui_autorepeat_gap_timeout_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_gap_timeout_set_api_delegate>(Module, "efl_ui_autorepeat_gap_timeout_set");
449 private static void autorepeat_gap_timeout_set(System.IntPtr obj, System.IntPtr pd, double t)
451 Eina.Log.Debug("function efl_ui_autorepeat_gap_timeout_set was called");
452 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
458 ((IAutorepeat)ws.Target).SetAutorepeatGapTimeout(t);
462 Eina.Log.Warning($"Callback error: {e.ToString()}");
463 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
470 efl_ui_autorepeat_gap_timeout_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), t);
474 private static efl_ui_autorepeat_gap_timeout_set_delegate efl_ui_autorepeat_gap_timeout_set_static_delegate;
476 [return: MarshalAs(UnmanagedType.U1)]
477 private delegate bool efl_ui_autorepeat_enabled_get_delegate(System.IntPtr obj, System.IntPtr pd);
479 [return: MarshalAs(UnmanagedType.U1)]
480 public delegate bool efl_ui_autorepeat_enabled_get_api_delegate(System.IntPtr obj);
482 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_enabled_get_api_delegate> efl_ui_autorepeat_enabled_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_enabled_get_api_delegate>(Module, "efl_ui_autorepeat_enabled_get");
484 private static bool autorepeat_enabled_get(System.IntPtr obj, System.IntPtr pd)
486 Eina.Log.Debug("function efl_ui_autorepeat_enabled_get was called");
487 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
490 bool _ret_var = default(bool);
493 _ret_var = ((IAutorepeat)ws.Target).GetAutorepeatEnabled();
497 Eina.Log.Warning($"Callback error: {e.ToString()}");
498 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
506 return efl_ui_autorepeat_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
510 private static efl_ui_autorepeat_enabled_get_delegate efl_ui_autorepeat_enabled_get_static_delegate;
513 private delegate void efl_ui_autorepeat_enabled_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool on);
516 public delegate void efl_ui_autorepeat_enabled_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool on);
518 public static Efl.Eo.FunctionWrapper<efl_ui_autorepeat_enabled_set_api_delegate> efl_ui_autorepeat_enabled_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_autorepeat_enabled_set_api_delegate>(Module, "efl_ui_autorepeat_enabled_set");
520 private static void autorepeat_enabled_set(System.IntPtr obj, System.IntPtr pd, bool on)
522 Eina.Log.Debug("function efl_ui_autorepeat_enabled_set was called");
523 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
529 ((IAutorepeat)ws.Target).SetAutorepeatEnabled(on);
533 Eina.Log.Warning($"Callback error: {e.ToString()}");
534 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
541 efl_ui_autorepeat_enabled_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), on);
545 private static efl_ui_autorepeat_enabled_set_delegate efl_ui_autorepeat_enabled_set_static_delegate;
547 #pragma warning restore CA1707, CS1591, SA1300, SA1600