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>Represents a generic event data.
13 /// Note: Most Efl Events do not carry Efl Objects, rather simple data structures. This class is intended to carry more complex event data, such as pointer events.</summary>
14 [Efl.Input.IEventConcrete.NativeMethods]
15 public interface IEvent :
17 Efl.Eo.IWrapper, IDisposable
19 /// <summary>The time at which an event was generated.
20 /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it.</summary>
21 /// <returns>Time in milliseconds when the event happened.</returns>
22 double GetTimestamp();
23 /// <summary>Call this when generating events manually.</summary>
24 /// <param name="ms">Time in milliseconds when the event happened.</param>
25 void SetTimestamp(double ms);
26 /// <summary>Input device that originated this event.</summary>
27 /// <returns>Input device origin</returns>
28 Efl.Input.Device GetDevice();
29 /// <summary>Input device that originated this event.</summary>
30 /// <param name="dev">Input device origin</param>
31 void SetDevice(Efl.Input.Device dev);
32 /// <summary>Extra flags for this event, may be changed by the user.</summary>
33 /// <returns>Input event flags</returns>
34 Efl.Input.Flags GetEventFlags();
35 /// <summary>Extra flags for this event, may be changed by the user.</summary>
36 /// <param name="flags">Input event flags</param>
37 void SetEventFlags(Efl.Input.Flags flags);
38 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
39 /// <returns><c>true</c> if the event is on hold, <c>false</c> otherwise</returns>
41 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
42 /// <param name="val"><c>true</c> if the event is on hold, <c>false</c> otherwise</param>
43 void SetProcessed(bool val);
44 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
45 /// <returns><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</returns>
47 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
48 /// <param name="val"><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</param>
49 void SetScrolling(bool val);
50 /// <summary><c>true</c> if the event was fake, not triggered by real hardware.</summary>
51 /// <returns><c>true</c> if the event was not from real hardware, <c>false</c> otherwise</returns>
53 /// <summary>Resets the internal data to 0 or default values.</summary>
55 /// <summary>The time at which an event was generated.
56 /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it.</summary>
57 /// <value>Time in milliseconds when the event happened.</value>
62 /// <summary>Input device that originated this event.</summary>
63 /// <value>Input device origin</value>
64 Efl.Input.Device Device {
68 /// <summary>Extra flags for this event, may be changed by the user.</summary>
69 /// <value>Input event flags</value>
70 Efl.Input.Flags EventFlags {
74 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
75 /// <value><c>true</c> if the event is on hold, <c>false</c> otherwise</value>
80 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
81 /// <value><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</value>
86 /// <summary><c>true</c> if the event was fake, not triggered by real hardware.</summary>
87 /// <value><c>true</c> if the event was not from real hardware, <c>false</c> otherwise</value>
92 /// <summary>Represents a generic event data.
93 /// Note: Most Efl Events do not carry Efl Objects, rather simple data structures. This class is intended to carry more complex event data, such as pointer events.</summary>
94 sealed public class IEventConcrete :
99 ///<summary>Pointer to the native class description.</summary>
100 public System.IntPtr NativeClass
104 if (((object)this).GetType() == typeof(IEventConcrete))
106 return GetEflClassStatic();
110 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
115 private System.IntPtr handle;
116 ///<summary>Pointer to the native instance.</summary>
117 public System.IntPtr NativeHandle
119 get { return handle; }
122 [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
123 efl_input_event_mixin_get();
124 /// <summary>Initializes a new instance of the <see cref="IEvent"/> class.
125 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
126 private IEventConcrete(System.IntPtr raw)
130 ///<summary>Destructor.</summary>
136 ///<summary>Releases the underlying native instance.</summary>
137 private void Dispose(bool disposing)
139 if (handle != System.IntPtr.Zero)
142 handle = IntPtr.Zero;
144 IntPtr gcHandlePtr = IntPtr.Zero;
147 Efl.Eo.Globals.efl_mono_native_dispose(h, gcHandlePtr);
151 Monitor.Enter(Efl.All.InitLock);
152 if (Efl.All.MainLoopInitialized)
154 Efl.Eo.Globals.efl_mono_thread_safe_native_dispose(h, gcHandlePtr);
157 Monitor.Exit(Efl.All.InitLock);
163 ///<summary>Releases the underlying native instance.</summary>
164 public void Dispose()
167 GC.SuppressFinalize(this);
170 /// <summary>Verifies if the given object is equal to this one.</summary>
171 /// <param name="instance">The object to compare to.</param>
172 /// <returns>True if both objects point to the same native object.</returns>
173 public override bool Equals(object instance)
175 var other = instance as Efl.Object;
180 return this.NativeHandle == other.NativeHandle;
183 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
184 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
185 public override int GetHashCode()
187 return this.NativeHandle.ToInt32();
190 /// <summary>Turns the native pointer into a string representation.</summary>
191 /// <returns>A string with the type and the native pointer for this object.</returns>
192 public override String ToString()
194 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
197 /// <summary>The time at which an event was generated.
198 /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it.</summary>
199 /// <returns>Time in milliseconds when the event happened.</returns>
200 public double GetTimestamp() {
201 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_get_ptr.Value.Delegate(this.NativeHandle);
202 Eina.Error.RaiseIfUnhandledException();
205 /// <summary>Call this when generating events manually.</summary>
206 /// <param name="ms">Time in milliseconds when the event happened.</param>
207 public void SetTimestamp(double ms) {
208 Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_set_ptr.Value.Delegate(this.NativeHandle,ms);
209 Eina.Error.RaiseIfUnhandledException();
211 /// <summary>Input device that originated this event.</summary>
212 /// <returns>Input device origin</returns>
213 public Efl.Input.Device GetDevice() {
214 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_device_get_ptr.Value.Delegate(this.NativeHandle);
215 Eina.Error.RaiseIfUnhandledException();
218 /// <summary>Input device that originated this event.</summary>
219 /// <param name="dev">Input device origin</param>
220 public void SetDevice(Efl.Input.Device dev) {
221 Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate(this.NativeHandle,dev);
222 Eina.Error.RaiseIfUnhandledException();
224 /// <summary>Extra flags for this event, may be changed by the user.</summary>
225 /// <returns>Input event flags</returns>
226 public Efl.Input.Flags GetEventFlags() {
227 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_get_ptr.Value.Delegate(this.NativeHandle);
228 Eina.Error.RaiseIfUnhandledException();
231 /// <summary>Extra flags for this event, may be changed by the user.</summary>
232 /// <param name="flags">Input event flags</param>
233 public void SetEventFlags(Efl.Input.Flags flags) {
234 Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_set_ptr.Value.Delegate(this.NativeHandle,flags);
235 Eina.Error.RaiseIfUnhandledException();
237 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
238 /// <returns><c>true</c> if the event is on hold, <c>false</c> otherwise</returns>
239 public bool GetProcessed() {
240 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_get_ptr.Value.Delegate(this.NativeHandle);
241 Eina.Error.RaiseIfUnhandledException();
244 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
245 /// <param name="val"><c>true</c> if the event is on hold, <c>false</c> otherwise</param>
246 public void SetProcessed(bool val) {
247 Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_set_ptr.Value.Delegate(this.NativeHandle,val);
248 Eina.Error.RaiseIfUnhandledException();
250 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
251 /// <returns><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</returns>
252 public bool GetScrolling() {
253 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_get_ptr.Value.Delegate(this.NativeHandle);
254 Eina.Error.RaiseIfUnhandledException();
257 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
258 /// <param name="val"><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</param>
259 public void SetScrolling(bool val) {
260 Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_set_ptr.Value.Delegate(this.NativeHandle,val);
261 Eina.Error.RaiseIfUnhandledException();
263 /// <summary><c>true</c> if the event was fake, not triggered by real hardware.</summary>
264 /// <returns><c>true</c> if the event was not from real hardware, <c>false</c> otherwise</returns>
265 public bool GetFake() {
266 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_fake_get_ptr.Value.Delegate(this.NativeHandle);
267 Eina.Error.RaiseIfUnhandledException();
270 /// <summary>Resets the internal data to 0 or default values.</summary>
271 public void Reset() {
272 Efl.Input.IEventConcrete.NativeMethods.efl_input_reset_ptr.Value.Delegate(this.NativeHandle);
273 Eina.Error.RaiseIfUnhandledException();
275 /// <summary>Creates a carbon copy of this object and returns it.
276 /// The newly created object will have no event handlers or anything of the sort.</summary>
277 /// <returns>Returned carbon copy</returns>
278 public Efl.IDuplicate Duplicate() {
279 var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate(this.NativeHandle);
280 Eina.Error.RaiseIfUnhandledException();
283 /// <summary>The time at which an event was generated.
284 /// If the event is generated by a server (eg. X.org or Wayland), then the time may be set by the server. Usually this time will be based on the monotonic clock, if available, but this class can not guarantee it.</summary>
285 /// <value>Time in milliseconds when the event happened.</value>
286 public double Timestamp {
287 get { return GetTimestamp(); }
288 set { SetTimestamp(value); }
290 /// <summary>Input device that originated this event.</summary>
291 /// <value>Input device origin</value>
292 public Efl.Input.Device Device {
293 get { return GetDevice(); }
294 set { SetDevice(value); }
296 /// <summary>Extra flags for this event, may be changed by the user.</summary>
297 /// <value>Input event flags</value>
298 public Efl.Input.Flags EventFlags {
299 get { return GetEventFlags(); }
300 set { SetEventFlags(value); }
302 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
303 /// <value><c>true</c> if the event is on hold, <c>false</c> otherwise</value>
304 public bool Processed {
305 get { return GetProcessed(); }
306 set { SetProcessed(value); }
308 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
309 /// <value><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</value>
310 public bool Scrolling {
311 get { return GetScrolling(); }
312 set { SetScrolling(value); }
314 /// <summary><c>true</c> if the event was fake, not triggered by real hardware.</summary>
315 /// <value><c>true</c> if the event was not from real hardware, <c>false</c> otherwise</value>
317 get { return GetFake(); }
319 private static IntPtr GetEflClassStatic()
321 return Efl.Input.IEventConcrete.efl_input_event_mixin_get();
323 /// <summary>Wrapper for native methods and virtual method delegates.
324 /// For internal use by generated code only.</summary>
325 public class NativeMethods : Efl.Eo.NativeClass
327 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas);
328 /// <summary>Gets the list of Eo operations to override.</summary>
329 /// <returns>The list of Eo operations to be overload.</returns>
330 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
332 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
333 var methods = Efl.Eo.Globals.GetUserMethods(type);
335 if (efl_input_timestamp_get_static_delegate == null)
337 efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get);
340 if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null)
342 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_get_static_delegate) });
345 if (efl_input_timestamp_set_static_delegate == null)
347 efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set);
350 if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null)
352 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_timestamp_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_timestamp_set_static_delegate) });
355 if (efl_input_device_get_static_delegate == null)
357 efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get);
360 if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null)
362 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_get_static_delegate) });
365 if (efl_input_device_set_static_delegate == null)
367 efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set);
370 if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null)
372 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_set_static_delegate) });
375 if (efl_input_event_flags_get_static_delegate == null)
377 efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get);
380 if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null)
382 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_get_static_delegate) });
385 if (efl_input_event_flags_set_static_delegate == null)
387 efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set);
390 if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null)
392 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_event_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_event_flags_set_static_delegate) });
395 if (efl_input_processed_get_static_delegate == null)
397 efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get);
400 if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null)
402 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_get_static_delegate) });
405 if (efl_input_processed_set_static_delegate == null)
407 efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set);
410 if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null)
412 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_processed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_processed_set_static_delegate) });
415 if (efl_input_scrolling_get_static_delegate == null)
417 efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get);
420 if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null)
422 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_get_static_delegate) });
425 if (efl_input_scrolling_set_static_delegate == null)
427 efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set);
430 if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null)
432 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_scrolling_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_scrolling_set_static_delegate) });
435 if (efl_input_fake_get_static_delegate == null)
437 efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get);
440 if (methods.FirstOrDefault(m => m.Name == "GetFake") != null)
442 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_fake_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_fake_get_static_delegate) });
445 if (efl_input_reset_static_delegate == null)
447 efl_input_reset_static_delegate = new efl_input_reset_delegate(reset);
450 if (methods.FirstOrDefault(m => m.Name == "Reset") != null)
452 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_reset"), func = Marshal.GetFunctionPointerForDelegate(efl_input_reset_static_delegate) });
455 if (efl_duplicate_static_delegate == null)
457 efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate);
460 if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null)
462 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) });
467 /// <summary>Returns the Eo class for the native methods of this class.</summary>
468 /// <returns>The native class pointer.</returns>
469 public override IntPtr GetEflClass()
471 return Efl.Input.IEventConcrete.efl_input_event_mixin_get();
474 #pragma warning disable CA1707, SA1300, SA1600
477 private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd);
480 public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj);
482 public static Efl.Eo.FunctionWrapper<efl_input_timestamp_get_api_delegate> efl_input_timestamp_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_timestamp_get_api_delegate>(Module, "efl_input_timestamp_get");
484 private static double timestamp_get(System.IntPtr obj, System.IntPtr pd)
486 Eina.Log.Debug("function efl_input_timestamp_get was called");
487 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
490 double _ret_var = default(double);
493 _ret_var = ((IEventConcrete)wrapper).GetTimestamp();
497 Eina.Log.Warning($"Callback error: {e.ToString()}");
498 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
506 return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
510 private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate;
513 private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms);
516 public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms);
518 public static Efl.Eo.FunctionWrapper<efl_input_timestamp_set_api_delegate> efl_input_timestamp_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_timestamp_set_api_delegate>(Module, "efl_input_timestamp_set");
520 private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms)
522 Eina.Log.Debug("function efl_input_timestamp_set was called");
523 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
529 ((IEventConcrete)wrapper).SetTimestamp(ms);
533 Eina.Log.Warning($"Callback error: {e.ToString()}");
534 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
541 efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms);
545 private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate;
547 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
548 private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd);
550 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
551 public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj);
553 public static Efl.Eo.FunctionWrapper<efl_input_device_get_api_delegate> efl_input_device_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_get_api_delegate>(Module, "efl_input_device_get");
555 private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd)
557 Eina.Log.Debug("function efl_input_device_get was called");
558 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
561 Efl.Input.Device _ret_var = default(Efl.Input.Device);
564 _ret_var = ((IEventConcrete)wrapper).GetDevice();
568 Eina.Log.Warning($"Callback error: {e.ToString()}");
569 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
577 return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
581 private static efl_input_device_get_delegate efl_input_device_get_static_delegate;
584 private delegate void efl_input_device_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Input.Device dev);
587 public delegate void efl_input_device_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Input.Device dev);
589 public static Efl.Eo.FunctionWrapper<efl_input_device_set_api_delegate> efl_input_device_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_set_api_delegate>(Module, "efl_input_device_set");
591 private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev)
593 Eina.Log.Debug("function efl_input_device_set was called");
594 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
600 ((IEventConcrete)wrapper).SetDevice(dev);
604 Eina.Log.Warning($"Callback error: {e.ToString()}");
605 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
612 efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev);
616 private static efl_input_device_set_delegate efl_input_device_set_static_delegate;
619 private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd);
622 public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj);
624 public static Efl.Eo.FunctionWrapper<efl_input_event_flags_get_api_delegate> efl_input_event_flags_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_event_flags_get_api_delegate>(Module, "efl_input_event_flags_get");
626 private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd)
628 Eina.Log.Debug("function efl_input_event_flags_get was called");
629 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
632 Efl.Input.Flags _ret_var = default(Efl.Input.Flags);
635 _ret_var = ((IEventConcrete)wrapper).GetEventFlags();
639 Eina.Log.Warning($"Callback error: {e.ToString()}");
640 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
648 return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
652 private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate;
655 private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags);
658 public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags);
660 public static Efl.Eo.FunctionWrapper<efl_input_event_flags_set_api_delegate> efl_input_event_flags_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_event_flags_set_api_delegate>(Module, "efl_input_event_flags_set");
662 private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags)
664 Eina.Log.Debug("function efl_input_event_flags_set was called");
665 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
671 ((IEventConcrete)wrapper).SetEventFlags(flags);
675 Eina.Log.Warning($"Callback error: {e.ToString()}");
676 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
683 efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags);
687 private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate;
689 [return: MarshalAs(UnmanagedType.U1)]
690 private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd);
692 [return: MarshalAs(UnmanagedType.U1)]
693 public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj);
695 public static Efl.Eo.FunctionWrapper<efl_input_processed_get_api_delegate> efl_input_processed_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_processed_get_api_delegate>(Module, "efl_input_processed_get");
697 private static bool processed_get(System.IntPtr obj, System.IntPtr pd)
699 Eina.Log.Debug("function efl_input_processed_get was called");
700 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
703 bool _ret_var = default(bool);
706 _ret_var = ((IEventConcrete)wrapper).GetProcessed();
710 Eina.Log.Warning($"Callback error: {e.ToString()}");
711 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
719 return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
723 private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate;
726 private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val);
729 public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val);
731 public static Efl.Eo.FunctionWrapper<efl_input_processed_set_api_delegate> efl_input_processed_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_processed_set_api_delegate>(Module, "efl_input_processed_set");
733 private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val)
735 Eina.Log.Debug("function efl_input_processed_set was called");
736 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
742 ((IEventConcrete)wrapper).SetProcessed(val);
746 Eina.Log.Warning($"Callback error: {e.ToString()}");
747 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
754 efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val);
758 private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate;
760 [return: MarshalAs(UnmanagedType.U1)]
761 private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd);
763 [return: MarshalAs(UnmanagedType.U1)]
764 public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj);
766 public static Efl.Eo.FunctionWrapper<efl_input_scrolling_get_api_delegate> efl_input_scrolling_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_scrolling_get_api_delegate>(Module, "efl_input_scrolling_get");
768 private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd)
770 Eina.Log.Debug("function efl_input_scrolling_get was called");
771 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
774 bool _ret_var = default(bool);
777 _ret_var = ((IEventConcrete)wrapper).GetScrolling();
781 Eina.Log.Warning($"Callback error: {e.ToString()}");
782 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
790 return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
794 private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate;
797 private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val);
800 public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val);
802 public static Efl.Eo.FunctionWrapper<efl_input_scrolling_set_api_delegate> efl_input_scrolling_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_scrolling_set_api_delegate>(Module, "efl_input_scrolling_set");
804 private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val)
806 Eina.Log.Debug("function efl_input_scrolling_set was called");
807 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
813 ((IEventConcrete)wrapper).SetScrolling(val);
817 Eina.Log.Warning($"Callback error: {e.ToString()}");
818 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
825 efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val);
829 private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate;
831 [return: MarshalAs(UnmanagedType.U1)]
832 private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd);
834 [return: MarshalAs(UnmanagedType.U1)]
835 public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj);
837 public static Efl.Eo.FunctionWrapper<efl_input_fake_get_api_delegate> efl_input_fake_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_fake_get_api_delegate>(Module, "efl_input_fake_get");
839 private static bool fake_get(System.IntPtr obj, System.IntPtr pd)
841 Eina.Log.Debug("function efl_input_fake_get was called");
842 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
845 bool _ret_var = default(bool);
848 _ret_var = ((IEventConcrete)wrapper).GetFake();
852 Eina.Log.Warning($"Callback error: {e.ToString()}");
853 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
861 return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
865 private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate;
868 private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd);
871 public delegate void efl_input_reset_api_delegate(System.IntPtr obj);
873 public static Efl.Eo.FunctionWrapper<efl_input_reset_api_delegate> efl_input_reset_ptr = new Efl.Eo.FunctionWrapper<efl_input_reset_api_delegate>(Module, "efl_input_reset");
875 private static void reset(System.IntPtr obj, System.IntPtr pd)
877 Eina.Log.Debug("function efl_input_reset was called");
878 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
884 ((IEventConcrete)wrapper).Reset();
888 Eina.Log.Warning($"Callback error: {e.ToString()}");
889 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
896 efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
900 private static efl_input_reset_delegate efl_input_reset_static_delegate;
902 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.OwnTag>))]
903 private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd);
905 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.OwnTag>))]
906 public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj);
908 public static Efl.Eo.FunctionWrapper<efl_duplicate_api_delegate> efl_duplicate_ptr = new Efl.Eo.FunctionWrapper<efl_duplicate_api_delegate>(Module, "efl_duplicate");
910 private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd)
912 Eina.Log.Debug("function efl_duplicate was called");
913 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
916 Efl.IDuplicate _ret_var = default(Efl.IDuplicate);
919 _ret_var = ((IEventConcrete)wrapper).Duplicate();
923 Eina.Log.Warning($"Callback error: {e.ToString()}");
924 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
932 return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
936 private static efl_duplicate_delegate efl_duplicate_static_delegate;
938 #pragma warning restore CA1707, SA1300, SA1600