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 pointing device such as a touch finger, pen or mouse.</summary>
13 [Efl.Input.Device.NativeMethods]
14 [Efl.Eo.BindingEntity]
15 public class Device : Efl.Object
17 ///<summary>Pointer to the native class description.</summary>
18 public override System.IntPtr NativeClass
22 if (((object)this).GetType() == typeof(Device))
24 return GetEflClassStatic();
28 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
33 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
34 efl_input_device_class_get();
35 /// <summary>Initializes a new instance of the <see cref="Device"/> class.</summary>
36 /// <param name="parent">Parent instance.</param>
37 public Device(Efl.Object parent= null
38 ) : base(efl_input_device_class_get(), parent)
40 FinishInstantiation();
43 /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
44 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
45 protected Device(ConstructingHandle ch) : base(ch)
49 /// <summary>Initializes a new instance of the <see cref="Device"/> class.
50 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
51 /// <param name="wh">The native pointer to be wrapped.</param>
52 protected Device(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
56 /// <summary>Initializes a new instance of the <see cref="Device"/> class.
57 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
58 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
59 /// <param name="parent">The Efl.Object parent of this instance.</param>
60 protected Device(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
64 /// <summary>Device type property</summary>
65 /// <returns>Input device class</returns>
66 virtual public Efl.Input.DeviceType GetDeviceType() {
67 var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_type_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
68 Eina.Error.RaiseIfUnhandledException();
71 /// <summary>Device type property</summary>
72 /// <param name="klass">Input device class</param>
73 virtual public void SetDeviceType(Efl.Input.DeviceType klass) {
74 Efl.Input.Device.NativeMethods.efl_input_device_type_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),klass);
75 Eina.Error.RaiseIfUnhandledException();
77 /// <summary>Device source property</summary>
78 /// <returns>Input device</returns>
79 virtual public Efl.Input.Device GetSource() {
80 var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_source_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
81 Eina.Error.RaiseIfUnhandledException();
84 /// <summary>Device source property</summary>
85 /// <param name="src">Input device</param>
86 virtual public void SetSource(Efl.Input.Device src) {
87 Efl.Input.Device.NativeMethods.efl_input_device_source_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),src);
88 Eina.Error.RaiseIfUnhandledException();
90 /// <summary>Get the <see cref="Efl.Input.Device"/> that represents a seat.
91 /// This method will find the seat the device belongs to.
93 /// For this, it walk through device's parents looking for a device with <see cref="Efl.Input.DeviceType.Seat"/>. It may be the device itself.
95 /// In case no seat is found, <c>null</c> is returned.</summary>
96 /// <returns>The seat this device belongs to.</returns>
97 virtual public Efl.Input.Device GetSeat() {
98 var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_seat_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
99 Eina.Error.RaiseIfUnhandledException();
102 /// <summary>Seat id number</summary>
103 /// <returns>The id of the seat</returns>
104 virtual public uint GetSeatId() {
105 var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_seat_id_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
106 Eina.Error.RaiseIfUnhandledException();
109 /// <summary>Seat id number</summary>
110 /// <param name="id">The id of the seat</param>
111 virtual public void SetSeatId(uint id) {
112 Efl.Input.Device.NativeMethods.efl_input_device_seat_id_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),id);
113 Eina.Error.RaiseIfUnhandledException();
115 /// <summary>The number of pointer devices in this seat.
116 /// Pointer devices are the ones whose <see cref="Efl.Input.Device.DeviceType"/> is <c>mouse</c>, <c>pen</c>, <c>touch</c> or <c>wand</c>. In case this device is not of the type <c>seat</c>, -1 is returned.</summary>
117 /// <returns>The number of pointer devices.</returns>
118 virtual public int GetPointerDeviceCount() {
119 var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_pointer_device_count_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
120 Eina.Error.RaiseIfUnhandledException();
123 /// <summary><c>true</c> if <see cref="Efl.Input.Device.DeviceType"/> is <c>mouse</c>, <c>pen</c>, <c>touch</c> or <c>wand</c>.</summary>
124 /// <returns><c>true</c> if the device has pointing capabilities.</returns>
125 virtual public bool GetIsPointerType() {
126 var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_is_pointer_type_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
127 Eina.Error.RaiseIfUnhandledException();
130 /// <summary>Lists the children attached to this device.
131 /// This is only meaningful with seat devices, as they are groups of real input devices.</summary>
132 /// <returns>List of device children</returns>
133 virtual public Eina.Iterator<Efl.Input.Device> ChildrenIterate() {
134 var _ret_var = Efl.Input.Device.NativeMethods.efl_input_device_children_iterate_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
135 Eina.Error.RaiseIfUnhandledException();
136 return new Eina.Iterator<Efl.Input.Device>(_ret_var, true);
138 /// <summary>Device type property</summary>
139 /// <value>Input device class</value>
140 public Efl.Input.DeviceType DeviceType {
141 get { return GetDeviceType(); }
142 set { SetDeviceType(value); }
144 /// <summary>Device source property</summary>
145 /// <value>Input device</value>
146 public Efl.Input.Device Source {
147 get { return GetSource(); }
148 set { SetSource(value); }
150 /// <summary>Get the <see cref="Efl.Input.Device"/> that represents a seat.
151 /// This method will find the seat the device belongs to.
153 /// For this, it walk through device's parents looking for a device with <see cref="Efl.Input.DeviceType.Seat"/>. It may be the device itself.
155 /// In case no seat is found, <c>null</c> is returned.</summary>
156 /// <value>The seat this device belongs to.</value>
157 public Efl.Input.Device Seat {
158 get { return GetSeat(); }
160 /// <summary>Seat id number</summary>
161 /// <value>The id of the seat</value>
163 get { return GetSeatId(); }
164 set { SetSeatId(value); }
166 /// <summary>The number of pointer devices in this seat.
167 /// Pointer devices are the ones whose <see cref="Efl.Input.Device.DeviceType"/> is <c>mouse</c>, <c>pen</c>, <c>touch</c> or <c>wand</c>. In case this device is not of the type <c>seat</c>, -1 is returned.</summary>
168 /// <value>The number of pointer devices.</value>
169 public int PointerDeviceCount {
170 get { return GetPointerDeviceCount(); }
172 /// <summary><c>true</c> if <see cref="Efl.Input.Device.DeviceType"/> is <c>mouse</c>, <c>pen</c>, <c>touch</c> or <c>wand</c>.</summary>
173 /// <value><c>true</c> if the device has pointing capabilities.</value>
174 public bool IsPointerType {
175 get { return GetIsPointerType(); }
177 private static IntPtr GetEflClassStatic()
179 return Efl.Input.Device.efl_input_device_class_get();
181 /// <summary>Wrapper for native methods and virtual method delegates.
182 /// For internal use by generated code only.</summary>
183 public new class NativeMethods : Efl.Object.NativeMethods
185 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
186 /// <summary>Gets the list of Eo operations to override.</summary>
187 /// <returns>The list of Eo operations to be overload.</returns>
188 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
190 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
191 var methods = Efl.Eo.Globals.GetUserMethods(type);
193 if (efl_input_device_type_get_static_delegate == null)
195 efl_input_device_type_get_static_delegate = new efl_input_device_type_get_delegate(device_type_get);
198 if (methods.FirstOrDefault(m => m.Name == "GetDeviceType") != null)
200 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_type_get_static_delegate) });
203 if (efl_input_device_type_set_static_delegate == null)
205 efl_input_device_type_set_static_delegate = new efl_input_device_type_set_delegate(device_type_set);
208 if (methods.FirstOrDefault(m => m.Name == "SetDeviceType") != null)
210 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_type_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_type_set_static_delegate) });
213 if (efl_input_device_source_get_static_delegate == null)
215 efl_input_device_source_get_static_delegate = new efl_input_device_source_get_delegate(source_get);
218 if (methods.FirstOrDefault(m => m.Name == "GetSource") != null)
220 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_source_get_static_delegate) });
223 if (efl_input_device_source_set_static_delegate == null)
225 efl_input_device_source_set_static_delegate = new efl_input_device_source_set_delegate(source_set);
228 if (methods.FirstOrDefault(m => m.Name == "SetSource") != null)
230 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_source_set_static_delegate) });
233 if (efl_input_device_seat_get_static_delegate == null)
235 efl_input_device_seat_get_static_delegate = new efl_input_device_seat_get_delegate(seat_get);
238 if (methods.FirstOrDefault(m => m.Name == "GetSeat") != null)
240 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_seat_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_seat_get_static_delegate) });
243 if (efl_input_device_seat_id_get_static_delegate == null)
245 efl_input_device_seat_id_get_static_delegate = new efl_input_device_seat_id_get_delegate(seat_id_get);
248 if (methods.FirstOrDefault(m => m.Name == "GetSeatId") != null)
250 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_seat_id_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_seat_id_get_static_delegate) });
253 if (efl_input_device_seat_id_set_static_delegate == null)
255 efl_input_device_seat_id_set_static_delegate = new efl_input_device_seat_id_set_delegate(seat_id_set);
258 if (methods.FirstOrDefault(m => m.Name == "SetSeatId") != null)
260 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_seat_id_set"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_seat_id_set_static_delegate) });
263 if (efl_input_device_pointer_device_count_get_static_delegate == null)
265 efl_input_device_pointer_device_count_get_static_delegate = new efl_input_device_pointer_device_count_get_delegate(pointer_device_count_get);
268 if (methods.FirstOrDefault(m => m.Name == "GetPointerDeviceCount") != null)
270 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_pointer_device_count_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_pointer_device_count_get_static_delegate) });
273 if (efl_input_device_is_pointer_type_get_static_delegate == null)
275 efl_input_device_is_pointer_type_get_static_delegate = new efl_input_device_is_pointer_type_get_delegate(is_pointer_type_get);
278 if (methods.FirstOrDefault(m => m.Name == "GetIsPointerType") != null)
280 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_is_pointer_type_get"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_is_pointer_type_get_static_delegate) });
283 if (efl_input_device_children_iterate_static_delegate == null)
285 efl_input_device_children_iterate_static_delegate = new efl_input_device_children_iterate_delegate(children_iterate);
288 if (methods.FirstOrDefault(m => m.Name == "ChildrenIterate") != null)
290 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_input_device_children_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_children_iterate_static_delegate) });
293 descs.AddRange(base.GetEoOps(type));
296 /// <summary>Returns the Eo class for the native methods of this class.</summary>
297 /// <returns>The native class pointer.</returns>
298 public override IntPtr GetEflClass()
300 return Efl.Input.Device.efl_input_device_class_get();
303 #pragma warning disable CA1707, CS1591, SA1300, SA1600
306 private delegate Efl.Input.DeviceType efl_input_device_type_get_delegate(System.IntPtr obj, System.IntPtr pd);
309 public delegate Efl.Input.DeviceType efl_input_device_type_get_api_delegate(System.IntPtr obj);
311 public static Efl.Eo.FunctionWrapper<efl_input_device_type_get_api_delegate> efl_input_device_type_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_type_get_api_delegate>(Module, "efl_input_device_type_get");
313 private static Efl.Input.DeviceType device_type_get(System.IntPtr obj, System.IntPtr pd)
315 Eina.Log.Debug("function efl_input_device_type_get was called");
316 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
319 Efl.Input.DeviceType _ret_var = default(Efl.Input.DeviceType);
322 _ret_var = ((Device)ws.Target).GetDeviceType();
326 Eina.Log.Warning($"Callback error: {e.ToString()}");
327 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
335 return efl_input_device_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
339 private static efl_input_device_type_get_delegate efl_input_device_type_get_static_delegate;
342 private delegate void efl_input_device_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.DeviceType klass);
345 public delegate void efl_input_device_type_set_api_delegate(System.IntPtr obj, Efl.Input.DeviceType klass);
347 public static Efl.Eo.FunctionWrapper<efl_input_device_type_set_api_delegate> efl_input_device_type_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_type_set_api_delegate>(Module, "efl_input_device_type_set");
349 private static void device_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.DeviceType klass)
351 Eina.Log.Debug("function efl_input_device_type_set was called");
352 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
358 ((Device)ws.Target).SetDeviceType(klass);
362 Eina.Log.Warning($"Callback error: {e.ToString()}");
363 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
370 efl_input_device_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass);
374 private static efl_input_device_type_set_delegate efl_input_device_type_set_static_delegate;
376 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
377 private delegate Efl.Input.Device efl_input_device_source_get_delegate(System.IntPtr obj, System.IntPtr pd);
379 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
380 public delegate Efl.Input.Device efl_input_device_source_get_api_delegate(System.IntPtr obj);
382 public static Efl.Eo.FunctionWrapper<efl_input_device_source_get_api_delegate> efl_input_device_source_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_source_get_api_delegate>(Module, "efl_input_device_source_get");
384 private static Efl.Input.Device source_get(System.IntPtr obj, System.IntPtr pd)
386 Eina.Log.Debug("function efl_input_device_source_get was called");
387 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
390 Efl.Input.Device _ret_var = default(Efl.Input.Device);
393 _ret_var = ((Device)ws.Target).GetSource();
397 Eina.Log.Warning($"Callback error: {e.ToString()}");
398 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
406 return efl_input_device_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
410 private static efl_input_device_source_get_delegate efl_input_device_source_get_static_delegate;
413 private delegate void efl_input_device_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Input.Device src);
416 public delegate void efl_input_device_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Input.Device src);
418 public static Efl.Eo.FunctionWrapper<efl_input_device_source_set_api_delegate> efl_input_device_source_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_source_set_api_delegate>(Module, "efl_input_device_source_set");
420 private static void source_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device src)
422 Eina.Log.Debug("function efl_input_device_source_set was called");
423 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
429 ((Device)ws.Target).SetSource(src);
433 Eina.Log.Warning($"Callback error: {e.ToString()}");
434 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
441 efl_input_device_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), src);
445 private static efl_input_device_source_set_delegate efl_input_device_source_set_static_delegate;
447 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
448 private delegate Efl.Input.Device efl_input_device_seat_get_delegate(System.IntPtr obj, System.IntPtr pd);
450 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
451 public delegate Efl.Input.Device efl_input_device_seat_get_api_delegate(System.IntPtr obj);
453 public static Efl.Eo.FunctionWrapper<efl_input_device_seat_get_api_delegate> efl_input_device_seat_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_seat_get_api_delegate>(Module, "efl_input_device_seat_get");
455 private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd)
457 Eina.Log.Debug("function efl_input_device_seat_get was called");
458 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
461 Efl.Input.Device _ret_var = default(Efl.Input.Device);
464 _ret_var = ((Device)ws.Target).GetSeat();
468 Eina.Log.Warning($"Callback error: {e.ToString()}");
469 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
477 return efl_input_device_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
481 private static efl_input_device_seat_get_delegate efl_input_device_seat_get_static_delegate;
484 private delegate uint efl_input_device_seat_id_get_delegate(System.IntPtr obj, System.IntPtr pd);
487 public delegate uint efl_input_device_seat_id_get_api_delegate(System.IntPtr obj);
489 public static Efl.Eo.FunctionWrapper<efl_input_device_seat_id_get_api_delegate> efl_input_device_seat_id_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_seat_id_get_api_delegate>(Module, "efl_input_device_seat_id_get");
491 private static uint seat_id_get(System.IntPtr obj, System.IntPtr pd)
493 Eina.Log.Debug("function efl_input_device_seat_id_get was called");
494 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
497 uint _ret_var = default(uint);
500 _ret_var = ((Device)ws.Target).GetSeatId();
504 Eina.Log.Warning($"Callback error: {e.ToString()}");
505 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
513 return efl_input_device_seat_id_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
517 private static efl_input_device_seat_id_get_delegate efl_input_device_seat_id_get_static_delegate;
520 private delegate void efl_input_device_seat_id_set_delegate(System.IntPtr obj, System.IntPtr pd, uint id);
523 public delegate void efl_input_device_seat_id_set_api_delegate(System.IntPtr obj, uint id);
525 public static Efl.Eo.FunctionWrapper<efl_input_device_seat_id_set_api_delegate> efl_input_device_seat_id_set_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_seat_id_set_api_delegate>(Module, "efl_input_device_seat_id_set");
527 private static void seat_id_set(System.IntPtr obj, System.IntPtr pd, uint id)
529 Eina.Log.Debug("function efl_input_device_seat_id_set was called");
530 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
536 ((Device)ws.Target).SetSeatId(id);
540 Eina.Log.Warning($"Callback error: {e.ToString()}");
541 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
548 efl_input_device_seat_id_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id);
552 private static efl_input_device_seat_id_set_delegate efl_input_device_seat_id_set_static_delegate;
555 private delegate int efl_input_device_pointer_device_count_get_delegate(System.IntPtr obj, System.IntPtr pd);
558 public delegate int efl_input_device_pointer_device_count_get_api_delegate(System.IntPtr obj);
560 public static Efl.Eo.FunctionWrapper<efl_input_device_pointer_device_count_get_api_delegate> efl_input_device_pointer_device_count_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_pointer_device_count_get_api_delegate>(Module, "efl_input_device_pointer_device_count_get");
562 private static int pointer_device_count_get(System.IntPtr obj, System.IntPtr pd)
564 Eina.Log.Debug("function efl_input_device_pointer_device_count_get was called");
565 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
568 int _ret_var = default(int);
571 _ret_var = ((Device)ws.Target).GetPointerDeviceCount();
575 Eina.Log.Warning($"Callback error: {e.ToString()}");
576 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
584 return efl_input_device_pointer_device_count_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
588 private static efl_input_device_pointer_device_count_get_delegate efl_input_device_pointer_device_count_get_static_delegate;
590 [return: MarshalAs(UnmanagedType.U1)]
591 private delegate bool efl_input_device_is_pointer_type_get_delegate(System.IntPtr obj, System.IntPtr pd);
593 [return: MarshalAs(UnmanagedType.U1)]
594 public delegate bool efl_input_device_is_pointer_type_get_api_delegate(System.IntPtr obj);
596 public static Efl.Eo.FunctionWrapper<efl_input_device_is_pointer_type_get_api_delegate> efl_input_device_is_pointer_type_get_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_is_pointer_type_get_api_delegate>(Module, "efl_input_device_is_pointer_type_get");
598 private static bool is_pointer_type_get(System.IntPtr obj, System.IntPtr pd)
600 Eina.Log.Debug("function efl_input_device_is_pointer_type_get was called");
601 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
604 bool _ret_var = default(bool);
607 _ret_var = ((Device)ws.Target).GetIsPointerType();
611 Eina.Log.Warning($"Callback error: {e.ToString()}");
612 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
620 return efl_input_device_is_pointer_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
624 private static efl_input_device_is_pointer_type_get_delegate efl_input_device_is_pointer_type_get_static_delegate;
627 private delegate System.IntPtr efl_input_device_children_iterate_delegate(System.IntPtr obj, System.IntPtr pd);
630 public delegate System.IntPtr efl_input_device_children_iterate_api_delegate(System.IntPtr obj);
632 public static Efl.Eo.FunctionWrapper<efl_input_device_children_iterate_api_delegate> efl_input_device_children_iterate_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_children_iterate_api_delegate>(Module, "efl_input_device_children_iterate");
634 private static System.IntPtr children_iterate(System.IntPtr obj, System.IntPtr pd)
636 Eina.Log.Debug("function efl_input_device_children_iterate was called");
637 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
640 Eina.Iterator<Efl.Input.Device> _ret_var = default(Eina.Iterator<Efl.Input.Device>);
643 _ret_var = ((Device)ws.Target).ChildrenIterate();
647 Eina.Log.Warning($"Callback error: {e.ToString()}");
648 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
651 _ret_var.Own = false; return _ret_var.Handle;
656 return efl_input_device_children_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
660 private static efl_input_device_children_iterate_delegate efl_input_device_children_iterate_static_delegate;
662 #pragma warning restore CA1707, CS1591, SA1300, SA1600
674 /// <summary>General type of input device.
675 /// Legacy support since 1.8 as <c>Evas_Device_Class</c>.</summary>
676 [Efl.Eo.BindingEntity]
677 public enum DeviceType
679 /// <summary>Not a device.</summary>
681 /// <summary>The user/seat (the user themselves).</summary>
683 /// <summary>A regular keyboard, numberpad or attached buttons.</summary>
685 /// <summary>A mouse, trackball or touchpad relative motion device.</summary>
687 /// <summary>A touchscreen with fingers or stylus.</summary>
689 /// <summary>A special pen device.</summary>
691 /// <summary>A laser pointer, wii-style or "Minority Report" pointing device.</summary>
693 /// <summary>A gamepad controller or joystick.</summary>
705 /// <summary>General type of input device.
706 /// Legacy support since 1.8 as <c>Evas_Device_Subclass</c>.</summary>
707 [Efl.Eo.BindingEntity]
708 public enum DeviceSubtype
710 /// <summary>Not a device.</summary>
712 /// <summary>The normal flat of your finger.</summary>
714 /// <summary>A fingernai.</summary>
716 /// <summary>A Knuckle.</summary>
718 /// <summary>The palm of a users hand.</summary>
720 /// <summary>The side of your hand.</summary>
722 /// <summary>The flat of your hand.</summary>
724 /// <summary>The tip of a pen.</summary>
726 /// <summary>A trackpad style mouse.</summary>
728 /// <summary>A trackpoint style mouse.</summary>
730 /// <summary>A trackball style mouse.</summary>
732 /// <summary>A remote controller.</summary>
734 /// <summary>A virtual keyboard.</summary>
735 VirtualKeyboard = 12,