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>Event data sent when inputs are put on hold or resumed.</summary>
13 [Efl.Input.Hold.NativeMethods]
14 public class Hold : Efl.Object, Efl.Eo.IWrapper,Efl.IDuplicate,Efl.Input.IEvent
16 ///<summary>Pointer to the native class description.</summary>
17 public override System.IntPtr NativeClass
21 if (((object)this).GetType() == typeof(Hold))
23 return GetEflClassStatic();
27 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
32 [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
33 efl_input_hold_class_get();
34 /// <summary>Initializes a new instance of the <see cref="Hold"/> class.</summary>
35 /// <param name="parent">Parent instance.</param>
36 public Hold(Efl.Object parent= null
37 ) : base(efl_input_hold_class_get(), typeof(Hold), parent)
39 FinishInstantiation();
42 /// <summary>Initializes a new instance of the <see cref="Hold"/> class.
43 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
44 /// <param name="raw">The native pointer to be wrapped.</param>
45 protected Hold(System.IntPtr raw) : base(raw)
49 /// <summary>Initializes a new instance of the <see cref="Hold"/> class.
50 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
51 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
52 /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
53 /// <param name="parent">The Efl.Object parent of this instance.</param>
54 protected Hold(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
58 /// <summary>Verifies if the given object is equal to this one.</summary>
59 /// <param name="instance">The object to compare to.</param>
60 /// <returns>True if both objects point to the same native object.</returns>
61 public override bool Equals(object instance)
63 var other = instance as Efl.Object;
68 return this.NativeHandle == other.NativeHandle;
71 /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
72 /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
73 public override int GetHashCode()
75 return this.NativeHandle.ToInt32();
78 /// <summary>Turns the native pointer into a string representation.</summary>
79 /// <returns>A string with the type and the native pointer for this object.</returns>
80 public override String ToString()
82 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
85 /// <summary>Property to show if inputs are now on hold.</summary>
86 /// <returns><c>true</c> if inputs are on hold, <c>false</c> otherwise</returns>
87 virtual public bool GetHold() {
88 var _ret_var = Efl.Input.Hold.NativeMethods.efl_input_hold_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
89 Eina.Error.RaiseIfUnhandledException();
92 /// <summary>Property to show if inputs are now on hold.</summary>
93 /// <param name="val"><c>true</c> if inputs are on hold, <c>false</c> otherwise</param>
94 virtual public void SetHold(bool val) {
95 Efl.Input.Hold.NativeMethods.efl_input_hold_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val);
96 Eina.Error.RaiseIfUnhandledException();
98 /// <summary>Creates a carbon copy of this object and returns it.
99 /// The newly created object will have no event handlers or anything of the sort.</summary>
100 /// <returns>Returned carbon copy</returns>
101 virtual public Efl.IDuplicate Duplicate() {
102 var _ret_var = Efl.IDuplicateConcrete.NativeMethods.efl_duplicate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
103 Eina.Error.RaiseIfUnhandledException();
106 /// <summary>The time at which an event was generated.
107 /// 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>
108 /// <returns>Time in milliseconds when the event happened.</returns>
109 virtual public double GetTimestamp() {
110 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
111 Eina.Error.RaiseIfUnhandledException();
114 /// <summary>Call this when generating events manually.</summary>
115 /// <param name="ms">Time in milliseconds when the event happened.</param>
116 virtual public void SetTimestamp(double ms) {
117 Efl.Input.IEventConcrete.NativeMethods.efl_input_timestamp_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),ms);
118 Eina.Error.RaiseIfUnhandledException();
120 /// <summary>Input device that originated this event.</summary>
121 /// <returns>Input device origin</returns>
122 virtual public Efl.Input.Device GetDevice() {
123 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_device_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
124 Eina.Error.RaiseIfUnhandledException();
127 /// <summary>Input device that originated this event.</summary>
128 /// <param name="dev">Input device origin</param>
129 virtual public void SetDevice(Efl.Input.Device dev) {
130 Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),dev);
131 Eina.Error.RaiseIfUnhandledException();
133 /// <summary>Extra flags for this event, may be changed by the user.</summary>
134 /// <returns>Input event flags</returns>
135 virtual public Efl.Input.Flags GetEventFlags() {
136 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
137 Eina.Error.RaiseIfUnhandledException();
140 /// <summary>Extra flags for this event, may be changed by the user.</summary>
141 /// <param name="flags">Input event flags</param>
142 virtual public void SetEventFlags(Efl.Input.Flags flags) {
143 Efl.Input.IEventConcrete.NativeMethods.efl_input_event_flags_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),flags);
144 Eina.Error.RaiseIfUnhandledException();
146 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
147 /// <returns><c>true</c> if the event is on hold, <c>false</c> otherwise</returns>
148 virtual public bool GetProcessed() {
149 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
150 Eina.Error.RaiseIfUnhandledException();
153 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
154 /// <param name="val"><c>true</c> if the event is on hold, <c>false</c> otherwise</param>
155 virtual public void SetProcessed(bool val) {
156 Efl.Input.IEventConcrete.NativeMethods.efl_input_processed_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val);
157 Eina.Error.RaiseIfUnhandledException();
159 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
160 /// <returns><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</returns>
161 virtual public bool GetScrolling() {
162 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
163 Eina.Error.RaiseIfUnhandledException();
166 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
167 /// <param name="val"><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</param>
168 virtual public void SetScrolling(bool val) {
169 Efl.Input.IEventConcrete.NativeMethods.efl_input_scrolling_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),val);
170 Eina.Error.RaiseIfUnhandledException();
172 /// <summary><c>true</c> if the event was fake, not triggered by real hardware.</summary>
173 /// <returns><c>true</c> if the event was not from real hardware, <c>false</c> otherwise</returns>
174 virtual public bool GetFake() {
175 var _ret_var = Efl.Input.IEventConcrete.NativeMethods.efl_input_fake_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
176 Eina.Error.RaiseIfUnhandledException();
179 /// <summary>Resets the internal data to 0 or default values.</summary>
180 virtual public void Reset() {
181 Efl.Input.IEventConcrete.NativeMethods.efl_input_reset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
182 Eina.Error.RaiseIfUnhandledException();
184 /// <summary>The time at which an event was generated.
185 /// 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>
186 /// <value>Time in milliseconds when the event happened.</value>
187 public double Timestamp {
188 get { return GetTimestamp(); }
189 set { SetTimestamp(value); }
191 /// <summary>Input device that originated this event.</summary>
192 /// <value>Input device origin</value>
193 public Efl.Input.Device Device {
194 get { return GetDevice(); }
195 set { SetDevice(value); }
197 /// <summary>Extra flags for this event, may be changed by the user.</summary>
198 /// <value>Input event flags</value>
199 public Efl.Input.Flags EventFlags {
200 get { return GetEventFlags(); }
201 set { SetEventFlags(value); }
203 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event is on hold.</summary>
204 /// <value><c>true</c> if the event is on hold, <c>false</c> otherwise</value>
205 public bool Processed {
206 get { return GetProcessed(); }
207 set { SetProcessed(value); }
209 /// <summary><c>true</c> if <see cref="Efl.Input.IEvent.EventFlags"/> indicates the event happened while scrolling.</summary>
210 /// <value><c>true</c> if the event happened while scrolling, <c>false</c> otherwise</value>
211 public bool Scrolling {
212 get { return GetScrolling(); }
213 set { SetScrolling(value); }
215 /// <summary><c>true</c> if the event was fake, not triggered by real hardware.</summary>
216 /// <value><c>true</c> if the event was not from real hardware, <c>false</c> otherwise</value>
218 get { return GetFake(); }
220 private static IntPtr GetEflClassStatic()
222 return Efl.Input.Hold.efl_input_hold_class_get();
224 /// <summary>Wrapper for native methods and virtual method delegates.
225 /// For internal use by generated code only.</summary>
226 public new class NativeMethods : Efl.Object.NativeMethods
228 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas);
229 /// <summary>Gets the list of Eo operations to override.</summary>
230 /// <returns>The list of Eo operations to be overload.</returns>
231 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
233 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
234 var methods = Efl.Eo.Globals.GetUserMethods(type);
236 if (efl_input_hold_get_static_delegate == null)
238 efl_input_hold_get_static_delegate = new efl_input_hold_get_delegate(hold_get);
241 if (methods.FirstOrDefault(m => m.Name == "GetHold") != null)
243 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_hold_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_hold_get_static_delegate) });
246 if (efl_input_hold_set_static_delegate == null)
248 efl_input_hold_set_static_delegate = new efl_input_hold_set_delegate(hold_set);
251 if (methods.FirstOrDefault(m => m.Name == "SetHold") != null)
253 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_hold_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_hold_set_static_delegate) });
256 if (efl_duplicate_static_delegate == null)
258 efl_duplicate_static_delegate = new efl_duplicate_delegate(duplicate);
261 if (methods.FirstOrDefault(m => m.Name == "Duplicate") != null)
263 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_duplicate"), func = Marshal.GetFunctionPointerForDelegate(efl_duplicate_static_delegate) });
266 if (efl_input_timestamp_get_static_delegate == null)
268 efl_input_timestamp_get_static_delegate = new efl_input_timestamp_get_delegate(timestamp_get);
271 if (methods.FirstOrDefault(m => m.Name == "GetTimestamp") != null)
273 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) });
276 if (efl_input_timestamp_set_static_delegate == null)
278 efl_input_timestamp_set_static_delegate = new efl_input_timestamp_set_delegate(timestamp_set);
281 if (methods.FirstOrDefault(m => m.Name == "SetTimestamp") != null)
283 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) });
286 if (efl_input_device_get_static_delegate == null)
288 efl_input_device_get_static_delegate = new efl_input_device_get_delegate(device_get);
291 if (methods.FirstOrDefault(m => m.Name == "GetDevice") != null)
293 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) });
296 if (efl_input_device_set_static_delegate == null)
298 efl_input_device_set_static_delegate = new efl_input_device_set_delegate(device_set);
301 if (methods.FirstOrDefault(m => m.Name == "SetDevice") != null)
303 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) });
306 if (efl_input_event_flags_get_static_delegate == null)
308 efl_input_event_flags_get_static_delegate = new efl_input_event_flags_get_delegate(event_flags_get);
311 if (methods.FirstOrDefault(m => m.Name == "GetEventFlags") != null)
313 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) });
316 if (efl_input_event_flags_set_static_delegate == null)
318 efl_input_event_flags_set_static_delegate = new efl_input_event_flags_set_delegate(event_flags_set);
321 if (methods.FirstOrDefault(m => m.Name == "SetEventFlags") != null)
323 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) });
326 if (efl_input_processed_get_static_delegate == null)
328 efl_input_processed_get_static_delegate = new efl_input_processed_get_delegate(processed_get);
331 if (methods.FirstOrDefault(m => m.Name == "GetProcessed") != null)
333 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) });
336 if (efl_input_processed_set_static_delegate == null)
338 efl_input_processed_set_static_delegate = new efl_input_processed_set_delegate(processed_set);
341 if (methods.FirstOrDefault(m => m.Name == "SetProcessed") != null)
343 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) });
346 if (efl_input_scrolling_get_static_delegate == null)
348 efl_input_scrolling_get_static_delegate = new efl_input_scrolling_get_delegate(scrolling_get);
351 if (methods.FirstOrDefault(m => m.Name == "GetScrolling") != null)
353 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) });
356 if (efl_input_scrolling_set_static_delegate == null)
358 efl_input_scrolling_set_static_delegate = new efl_input_scrolling_set_delegate(scrolling_set);
361 if (methods.FirstOrDefault(m => m.Name == "SetScrolling") != null)
363 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) });
366 if (efl_input_fake_get_static_delegate == null)
368 efl_input_fake_get_static_delegate = new efl_input_fake_get_delegate(fake_get);
371 if (methods.FirstOrDefault(m => m.Name == "GetFake") != null)
373 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) });
376 if (efl_input_reset_static_delegate == null)
378 efl_input_reset_static_delegate = new efl_input_reset_delegate(reset);
381 if (methods.FirstOrDefault(m => m.Name == "Reset") != null)
383 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) });
386 descs.AddRange(base.GetEoOps(type));
389 /// <summary>Returns the Eo class for the native methods of this class.</summary>
390 /// <returns>The native class pointer.</returns>
391 public override IntPtr GetEflClass()
393 return Efl.Input.Hold.efl_input_hold_class_get();
396 #pragma warning disable CA1707, SA1300, SA1600
398 [return: MarshalAs(UnmanagedType.U1)]
399 private delegate bool efl_input_hold_get_delegate(System.IntPtr obj, System.IntPtr pd);
401 [return: MarshalAs(UnmanagedType.U1)]
402 public delegate bool efl_input_hold_get_api_delegate(System.IntPtr obj);
404 public static Efl.Eo.FunctionWrapper<efl_input_hold_get_api_delegate> efl_input_hold_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_hold_get_api_delegate>(Module, "efl_input_hold_get");
406 private static bool hold_get(System.IntPtr obj, System.IntPtr pd)
408 Eina.Log.Debug("function efl_input_hold_get was called");
409 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
412 bool _ret_var = default(bool);
415 _ret_var = ((Hold)wrapper).GetHold();
419 Eina.Log.Warning($"Callback error: {e.ToString()}");
420 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
428 return efl_input_hold_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
432 private static efl_input_hold_get_delegate efl_input_hold_get_static_delegate;
435 private delegate void efl_input_hold_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val);
438 public delegate void efl_input_hold_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val);
440 public static Efl.Eo.FunctionWrapper<efl_input_hold_set_api_delegate> efl_input_hold_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_hold_set_api_delegate>(Module, "efl_input_hold_set");
442 private static void hold_set(System.IntPtr obj, System.IntPtr pd, bool val)
444 Eina.Log.Debug("function efl_input_hold_set was called");
445 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
451 ((Hold)wrapper).SetHold(val);
455 Eina.Log.Warning($"Callback error: {e.ToString()}");
456 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
463 efl_input_hold_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val);
467 private static efl_input_hold_set_delegate efl_input_hold_set_static_delegate;
469 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.OwnTag>))]
470 private delegate Efl.IDuplicate efl_duplicate_delegate(System.IntPtr obj, System.IntPtr pd);
472 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.OwnTag>))]
473 public delegate Efl.IDuplicate efl_duplicate_api_delegate(System.IntPtr obj);
475 public static Efl.Eo.FunctionWrapper<efl_duplicate_api_delegate> efl_duplicate_ptr = new Efl.Eo.FunctionWrapper<efl_duplicate_api_delegate>(Module, "efl_duplicate");
477 private static Efl.IDuplicate duplicate(System.IntPtr obj, System.IntPtr pd)
479 Eina.Log.Debug("function efl_duplicate was called");
480 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
483 Efl.IDuplicate _ret_var = default(Efl.IDuplicate);
486 _ret_var = ((Hold)wrapper).Duplicate();
490 Eina.Log.Warning($"Callback error: {e.ToString()}");
491 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
499 return efl_duplicate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
503 private static efl_duplicate_delegate efl_duplicate_static_delegate;
506 private delegate double efl_input_timestamp_get_delegate(System.IntPtr obj, System.IntPtr pd);
509 public delegate double efl_input_timestamp_get_api_delegate(System.IntPtr obj);
511 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");
513 private static double timestamp_get(System.IntPtr obj, System.IntPtr pd)
515 Eina.Log.Debug("function efl_input_timestamp_get was called");
516 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
519 double _ret_var = default(double);
522 _ret_var = ((Hold)wrapper).GetTimestamp();
526 Eina.Log.Warning($"Callback error: {e.ToString()}");
527 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
535 return efl_input_timestamp_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
539 private static efl_input_timestamp_get_delegate efl_input_timestamp_get_static_delegate;
542 private delegate void efl_input_timestamp_set_delegate(System.IntPtr obj, System.IntPtr pd, double ms);
545 public delegate void efl_input_timestamp_set_api_delegate(System.IntPtr obj, double ms);
547 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");
549 private static void timestamp_set(System.IntPtr obj, System.IntPtr pd, double ms)
551 Eina.Log.Debug("function efl_input_timestamp_set was called");
552 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
558 ((Hold)wrapper).SetTimestamp(ms);
562 Eina.Log.Warning($"Callback error: {e.ToString()}");
563 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
570 efl_input_timestamp_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ms);
574 private static efl_input_timestamp_set_delegate efl_input_timestamp_set_static_delegate;
576 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
577 private delegate Efl.Input.Device efl_input_device_get_delegate(System.IntPtr obj, System.IntPtr pd);
579 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
580 public delegate Efl.Input.Device efl_input_device_get_api_delegate(System.IntPtr obj);
582 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");
584 private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd)
586 Eina.Log.Debug("function efl_input_device_get was called");
587 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
590 Efl.Input.Device _ret_var = default(Efl.Input.Device);
593 _ret_var = ((Hold)wrapper).GetDevice();
597 Eina.Log.Warning($"Callback error: {e.ToString()}");
598 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
606 return efl_input_device_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
610 private static efl_input_device_get_delegate efl_input_device_get_static_delegate;
613 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);
616 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);
618 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");
620 private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev)
622 Eina.Log.Debug("function efl_input_device_set was called");
623 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
629 ((Hold)wrapper).SetDevice(dev);
633 Eina.Log.Warning($"Callback error: {e.ToString()}");
634 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
641 efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev);
645 private static efl_input_device_set_delegate efl_input_device_set_static_delegate;
648 private delegate Efl.Input.Flags efl_input_event_flags_get_delegate(System.IntPtr obj, System.IntPtr pd);
651 public delegate Efl.Input.Flags efl_input_event_flags_get_api_delegate(System.IntPtr obj);
653 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");
655 private static Efl.Input.Flags event_flags_get(System.IntPtr obj, System.IntPtr pd)
657 Eina.Log.Debug("function efl_input_event_flags_get was called");
658 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
661 Efl.Input.Flags _ret_var = default(Efl.Input.Flags);
664 _ret_var = ((Hold)wrapper).GetEventFlags();
668 Eina.Log.Warning($"Callback error: {e.ToString()}");
669 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
677 return efl_input_event_flags_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
681 private static efl_input_event_flags_get_delegate efl_input_event_flags_get_static_delegate;
684 private delegate void efl_input_event_flags_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags);
687 public delegate void efl_input_event_flags_set_api_delegate(System.IntPtr obj, Efl.Input.Flags flags);
689 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");
691 private static void event_flags_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Flags flags)
693 Eina.Log.Debug("function efl_input_event_flags_set was called");
694 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
700 ((Hold)wrapper).SetEventFlags(flags);
704 Eina.Log.Warning($"Callback error: {e.ToString()}");
705 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
712 efl_input_event_flags_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), flags);
716 private static efl_input_event_flags_set_delegate efl_input_event_flags_set_static_delegate;
718 [return: MarshalAs(UnmanagedType.U1)]
719 private delegate bool efl_input_processed_get_delegate(System.IntPtr obj, System.IntPtr pd);
721 [return: MarshalAs(UnmanagedType.U1)]
722 public delegate bool efl_input_processed_get_api_delegate(System.IntPtr obj);
724 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");
726 private static bool processed_get(System.IntPtr obj, System.IntPtr pd)
728 Eina.Log.Debug("function efl_input_processed_get was called");
729 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
732 bool _ret_var = default(bool);
735 _ret_var = ((Hold)wrapper).GetProcessed();
739 Eina.Log.Warning($"Callback error: {e.ToString()}");
740 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
748 return efl_input_processed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
752 private static efl_input_processed_get_delegate efl_input_processed_get_static_delegate;
755 private delegate void efl_input_processed_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val);
758 public delegate void efl_input_processed_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val);
760 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");
762 private static void processed_set(System.IntPtr obj, System.IntPtr pd, bool val)
764 Eina.Log.Debug("function efl_input_processed_set was called");
765 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
771 ((Hold)wrapper).SetProcessed(val);
775 Eina.Log.Warning($"Callback error: {e.ToString()}");
776 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
783 efl_input_processed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val);
787 private static efl_input_processed_set_delegate efl_input_processed_set_static_delegate;
789 [return: MarshalAs(UnmanagedType.U1)]
790 private delegate bool efl_input_scrolling_get_delegate(System.IntPtr obj, System.IntPtr pd);
792 [return: MarshalAs(UnmanagedType.U1)]
793 public delegate bool efl_input_scrolling_get_api_delegate(System.IntPtr obj);
795 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");
797 private static bool scrolling_get(System.IntPtr obj, System.IntPtr pd)
799 Eina.Log.Debug("function efl_input_scrolling_get was called");
800 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
803 bool _ret_var = default(bool);
806 _ret_var = ((Hold)wrapper).GetScrolling();
810 Eina.Log.Warning($"Callback error: {e.ToString()}");
811 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
819 return efl_input_scrolling_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
823 private static efl_input_scrolling_get_delegate efl_input_scrolling_get_static_delegate;
826 private delegate void efl_input_scrolling_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool val);
829 public delegate void efl_input_scrolling_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool val);
831 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");
833 private static void scrolling_set(System.IntPtr obj, System.IntPtr pd, bool val)
835 Eina.Log.Debug("function efl_input_scrolling_set was called");
836 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
842 ((Hold)wrapper).SetScrolling(val);
846 Eina.Log.Warning($"Callback error: {e.ToString()}");
847 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
854 efl_input_scrolling_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), val);
858 private static efl_input_scrolling_set_delegate efl_input_scrolling_set_static_delegate;
860 [return: MarshalAs(UnmanagedType.U1)]
861 private delegate bool efl_input_fake_get_delegate(System.IntPtr obj, System.IntPtr pd);
863 [return: MarshalAs(UnmanagedType.U1)]
864 public delegate bool efl_input_fake_get_api_delegate(System.IntPtr obj);
866 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");
868 private static bool fake_get(System.IntPtr obj, System.IntPtr pd)
870 Eina.Log.Debug("function efl_input_fake_get was called");
871 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
874 bool _ret_var = default(bool);
877 _ret_var = ((Hold)wrapper).GetFake();
881 Eina.Log.Warning($"Callback error: {e.ToString()}");
882 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
890 return efl_input_fake_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
894 private static efl_input_fake_get_delegate efl_input_fake_get_static_delegate;
897 private delegate void efl_input_reset_delegate(System.IntPtr obj, System.IntPtr pd);
900 public delegate void efl_input_reset_api_delegate(System.IntPtr obj);
902 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");
904 private static void reset(System.IntPtr obj, System.IntPtr pd)
906 Eina.Log.Debug("function efl_input_reset was called");
907 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
913 ((Hold)wrapper).Reset();
917 Eina.Log.Warning($"Callback error: {e.ToString()}");
918 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
925 efl_input_reset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
929 private static efl_input_reset_delegate efl_input_reset_static_delegate;
931 #pragma warning restore CA1707, SA1300, SA1600