1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.ComponentModel;
7 namespace Efl { namespace Input {
8 /// <summary>Represents a pointing device such as a touch finger, pen or mouse.
11 public class Device : Efl.Object, Efl.Eo.IWrapper
13 public new static System.IntPtr klass = System.IntPtr.Zero;
14 public new static Efl.Input.DeviceNativeInherit nativeInherit = new Efl.Input.DeviceNativeInherit();
15 ///<summary>Pointer to the native class description.</summary>
16 public override System.IntPtr NativeClass {
18 if (((object)this).GetType() == typeof (Device))
19 return Efl.Input.DeviceNativeInherit.GetEflClassStatic();
21 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
24 [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
25 efl_input_device_class_get();
26 ///<summary>Creates a new instance.</summary>
27 ///<param name="parent">Parent instance.</param>
28 public Device(Efl.Object parent= null
30 base(efl_input_device_class_get(), typeof(Device), parent)
32 FinishInstantiation();
34 ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
35 public Device(System.IntPtr raw) : base(raw)
37 register_event_proxies();
39 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
40 protected Device(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
41 ///<summary>Casts obj into an instance of this type.</summary>
42 public new static Device static_cast(Efl.Object obj)
45 throw new System.ArgumentNullException("obj");
46 return new Device(obj.NativeHandle);
48 ///<summary>Verifies if the given object is equal to this one.</summary>
49 public override bool Equals(object obj)
51 var other = obj as Efl.Object;
54 return this.NativeHandle == other.NativeHandle;
56 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
57 public override int GetHashCode()
59 return this.NativeHandle.ToInt32();
61 ///<summary>Turns the native pointer into a string representation.</summary>
62 public override String ToString()
64 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
66 protected override void register_event_proxies()
68 base.register_event_proxies();
70 /// <summary>Device type property
72 /// <returns>Input device class
74 virtual public Efl.Input.DeviceType GetDeviceType() {
75 var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_type_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
76 Eina.Error.RaiseIfUnhandledException();
79 /// <summary>Device type property
81 /// <param name="klass">Input device class
83 /// <returns></returns>
84 virtual public void SetDeviceType( Efl.Input.DeviceType klass) {
85 Efl.Input.DeviceNativeInherit.efl_input_device_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), klass);
86 Eina.Error.RaiseIfUnhandledException();
88 /// <summary>Device source property
90 /// <returns>Input device
92 virtual public Efl.Input.Device GetSource() {
93 var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_source_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
94 Eina.Error.RaiseIfUnhandledException();
97 /// <summary>Device source property
99 /// <param name="src">Input device
101 /// <returns></returns>
102 virtual public void SetSource( Efl.Input.Device src) {
103 Efl.Input.DeviceNativeInherit.efl_input_device_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), src);
104 Eina.Error.RaiseIfUnhandledException();
106 /// <summary>Get the <see cref="Efl.Input.Device"/> that represents a seat.
107 /// This method will find the seat the device belongs to.
109 /// 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.
111 /// In case no seat is found, <c>null</c> is returned.
113 /// <returns>The seat this device belongs to.
115 virtual public Efl.Input.Device GetSeat() {
116 var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_seat_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
117 Eina.Error.RaiseIfUnhandledException();
120 /// <summary>Seat id number
122 /// <returns>The id of the seat
124 virtual public uint GetSeatId() {
125 var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_seat_id_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
126 Eina.Error.RaiseIfUnhandledException();
129 /// <summary>Seat id number
131 /// <param name="id">The id of the seat
133 /// <returns></returns>
134 virtual public void SetSeatId( uint id) {
135 Efl.Input.DeviceNativeInherit.efl_input_device_seat_id_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), id);
136 Eina.Error.RaiseIfUnhandledException();
138 /// <summary>Lists the children attached to this device.
139 /// This is only meaningful with seat devices, as they are groups of real input devices.
141 /// <returns>List of device children
143 virtual public Eina.Iterator<Efl.Input.Device> ChildrenIterate() {
144 var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_children_iterate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
145 Eina.Error.RaiseIfUnhandledException();
146 return new Eina.Iterator<Efl.Input.Device>(_ret_var, true, false);
148 /// <summary>Determine whether a device has pointer capabilities.
149 /// Returns 1 for Mouse, Touch, Pen, Pointer, and Wand type devices.
151 /// If a seat device is passed returns the number of pointer devices in the seat.
153 /// <returns>Pointer caps
155 virtual public uint HasPointerCaps() {
156 var _ret_var = Efl.Input.DeviceNativeInherit.efl_input_device_has_pointer_caps_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
157 Eina.Error.RaiseIfUnhandledException();
160 /// <summary>Device type property
162 /// <value>Input device class
164 public Efl.Input.DeviceType DeviceType {
165 get { return GetDeviceType(); }
166 set { SetDeviceType( value); }
168 /// <summary>Device source property
170 /// <value>Input device
172 public Efl.Input.Device Source {
173 get { return GetSource(); }
174 set { SetSource( value); }
176 /// <summary>Get the <see cref="Efl.Input.Device"/> that represents a seat.
177 /// This method will find the seat the device belongs to.
179 /// 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.
181 /// In case no seat is found, <c>null</c> is returned.
183 /// <value>The seat this device belongs to.
185 public Efl.Input.Device Seat {
186 get { return GetSeat(); }
188 /// <summary>Seat id number
190 /// <value>The id of the seat
193 get { return GetSeatId(); }
194 set { SetSeatId( value); }
196 private static new IntPtr GetEflClassStatic()
198 return Efl.Input.Device.efl_input_device_class_get();
201 public class DeviceNativeInherit : Efl.ObjectNativeInherit{
202 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl);
203 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
205 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
206 if (efl_input_device_type_get_static_delegate == null)
207 efl_input_device_type_get_static_delegate = new efl_input_device_type_get_delegate(device_type_get);
208 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)});
209 if (efl_input_device_type_set_static_delegate == null)
210 efl_input_device_type_set_static_delegate = new efl_input_device_type_set_delegate(device_type_set);
211 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)});
212 if (efl_input_device_source_get_static_delegate == null)
213 efl_input_device_source_get_static_delegate = new efl_input_device_source_get_delegate(source_get);
214 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)});
215 if (efl_input_device_source_set_static_delegate == null)
216 efl_input_device_source_set_static_delegate = new efl_input_device_source_set_delegate(source_set);
217 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)});
218 if (efl_input_device_seat_get_static_delegate == null)
219 efl_input_device_seat_get_static_delegate = new efl_input_device_seat_get_delegate(seat_get);
220 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)});
221 if (efl_input_device_seat_id_get_static_delegate == null)
222 efl_input_device_seat_id_get_static_delegate = new efl_input_device_seat_id_get_delegate(seat_id_get);
223 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)});
224 if (efl_input_device_seat_id_set_static_delegate == null)
225 efl_input_device_seat_id_set_static_delegate = new efl_input_device_seat_id_set_delegate(seat_id_set);
226 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)});
227 if (efl_input_device_children_iterate_static_delegate == null)
228 efl_input_device_children_iterate_static_delegate = new efl_input_device_children_iterate_delegate(children_iterate);
229 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)});
230 if (efl_input_device_has_pointer_caps_static_delegate == null)
231 efl_input_device_has_pointer_caps_static_delegate = new efl_input_device_has_pointer_caps_delegate(has_pointer_caps);
232 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_input_device_has_pointer_caps"), func = Marshal.GetFunctionPointerForDelegate(efl_input_device_has_pointer_caps_static_delegate)});
233 descs.AddRange(base.GetEoOps(type));
236 public override IntPtr GetEflClass()
238 return Efl.Input.Device.efl_input_device_class_get();
240 public static new IntPtr GetEflClassStatic()
242 return Efl.Input.Device.efl_input_device_class_get();
246 private delegate Efl.Input.DeviceType efl_input_device_type_get_delegate(System.IntPtr obj, System.IntPtr pd);
249 public delegate Efl.Input.DeviceType efl_input_device_type_get_api_delegate(System.IntPtr obj);
250 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");
251 private static Efl.Input.DeviceType device_type_get(System.IntPtr obj, System.IntPtr pd)
253 Eina.Log.Debug("function efl_input_device_type_get was called");
254 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
255 if(wrapper != null) {
256 Efl.Input.DeviceType _ret_var = default(Efl.Input.DeviceType);
258 _ret_var = ((Device)wrapper).GetDeviceType();
259 } catch (Exception e) {
260 Eina.Log.Warning($"Callback error: {e.ToString()}");
261 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
265 return efl_input_device_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
268 private static efl_input_device_type_get_delegate efl_input_device_type_get_static_delegate;
271 private delegate void efl_input_device_type_set_delegate(System.IntPtr obj, System.IntPtr pd, Efl.Input.DeviceType klass);
274 public delegate void efl_input_device_type_set_api_delegate(System.IntPtr obj, Efl.Input.DeviceType klass);
275 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");
276 private static void device_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.DeviceType klass)
278 Eina.Log.Debug("function efl_input_device_type_set was called");
279 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
280 if(wrapper != null) {
283 ((Device)wrapper).SetDeviceType( klass);
284 } catch (Exception e) {
285 Eina.Log.Warning($"Callback error: {e.ToString()}");
286 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
289 efl_input_device_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass);
292 private static efl_input_device_type_set_delegate efl_input_device_type_set_static_delegate;
295 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Input.Device, Efl.Eo.NonOwnTag>))] private delegate Efl.Input.Device efl_input_device_source_get_delegate(System.IntPtr obj, System.IntPtr pd);
298 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Input.Device, Efl.Eo.NonOwnTag>))] public delegate Efl.Input.Device efl_input_device_source_get_api_delegate(System.IntPtr obj);
299 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");
300 private static Efl.Input.Device source_get(System.IntPtr obj, System.IntPtr pd)
302 Eina.Log.Debug("function efl_input_device_source_get was called");
303 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
304 if(wrapper != null) {
305 Efl.Input.Device _ret_var = default(Efl.Input.Device);
307 _ret_var = ((Device)wrapper).GetSource();
308 } catch (Exception e) {
309 Eina.Log.Warning($"Callback error: {e.ToString()}");
310 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
314 return efl_input_device_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
317 private static efl_input_device_source_get_delegate efl_input_device_source_get_static_delegate;
320 private delegate void efl_input_device_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Input.Device, Efl.Eo.NonOwnTag>))] Efl.Input.Device src);
323 public delegate void efl_input_device_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Input.Device, Efl.Eo.NonOwnTag>))] Efl.Input.Device src);
324 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");
325 private static void source_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device src)
327 Eina.Log.Debug("function efl_input_device_source_set was called");
328 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
329 if(wrapper != null) {
332 ((Device)wrapper).SetSource( src);
333 } catch (Exception e) {
334 Eina.Log.Warning($"Callback error: {e.ToString()}");
335 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
338 efl_input_device_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), src);
341 private static efl_input_device_source_set_delegate efl_input_device_source_set_static_delegate;
344 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Input.Device, Efl.Eo.NonOwnTag>))] private delegate Efl.Input.Device efl_input_device_seat_get_delegate(System.IntPtr obj, System.IntPtr pd);
347 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Input.Device, Efl.Eo.NonOwnTag>))] public delegate Efl.Input.Device efl_input_device_seat_get_api_delegate(System.IntPtr obj);
348 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");
349 private static Efl.Input.Device seat_get(System.IntPtr obj, System.IntPtr pd)
351 Eina.Log.Debug("function efl_input_device_seat_get was called");
352 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
353 if(wrapper != null) {
354 Efl.Input.Device _ret_var = default(Efl.Input.Device);
356 _ret_var = ((Device)wrapper).GetSeat();
357 } catch (Exception e) {
358 Eina.Log.Warning($"Callback error: {e.ToString()}");
359 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
363 return efl_input_device_seat_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
366 private static efl_input_device_seat_get_delegate efl_input_device_seat_get_static_delegate;
369 private delegate uint efl_input_device_seat_id_get_delegate(System.IntPtr obj, System.IntPtr pd);
372 public delegate uint efl_input_device_seat_id_get_api_delegate(System.IntPtr obj);
373 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");
374 private static uint seat_id_get(System.IntPtr obj, System.IntPtr pd)
376 Eina.Log.Debug("function efl_input_device_seat_id_get was called");
377 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
378 if(wrapper != null) {
379 uint _ret_var = default( uint);
381 _ret_var = ((Device)wrapper).GetSeatId();
382 } catch (Exception e) {
383 Eina.Log.Warning($"Callback error: {e.ToString()}");
384 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
388 return efl_input_device_seat_id_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
391 private static efl_input_device_seat_id_get_delegate efl_input_device_seat_id_get_static_delegate;
394 private delegate void efl_input_device_seat_id_set_delegate(System.IntPtr obj, System.IntPtr pd, uint id);
397 public delegate void efl_input_device_seat_id_set_api_delegate(System.IntPtr obj, uint id);
398 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");
399 private static void seat_id_set(System.IntPtr obj, System.IntPtr pd, uint id)
401 Eina.Log.Debug("function efl_input_device_seat_id_set was called");
402 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
403 if(wrapper != null) {
406 ((Device)wrapper).SetSeatId( id);
407 } catch (Exception e) {
408 Eina.Log.Warning($"Callback error: {e.ToString()}");
409 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
412 efl_input_device_seat_id_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), id);
415 private static efl_input_device_seat_id_set_delegate efl_input_device_seat_id_set_static_delegate;
418 private delegate System.IntPtr efl_input_device_children_iterate_delegate(System.IntPtr obj, System.IntPtr pd);
421 public delegate System.IntPtr efl_input_device_children_iterate_api_delegate(System.IntPtr obj);
422 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");
423 private static System.IntPtr children_iterate(System.IntPtr obj, System.IntPtr pd)
425 Eina.Log.Debug("function efl_input_device_children_iterate was called");
426 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
427 if(wrapper != null) {
428 Eina.Iterator<Efl.Input.Device> _ret_var = default(Eina.Iterator<Efl.Input.Device>);
430 _ret_var = ((Device)wrapper).ChildrenIterate();
431 } catch (Exception e) {
432 Eina.Log.Warning($"Callback error: {e.ToString()}");
433 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
435 _ret_var.Own = false; return _ret_var.Handle;
437 return efl_input_device_children_iterate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
440 private static efl_input_device_children_iterate_delegate efl_input_device_children_iterate_static_delegate;
443 private delegate uint efl_input_device_has_pointer_caps_delegate(System.IntPtr obj, System.IntPtr pd);
446 public delegate uint efl_input_device_has_pointer_caps_api_delegate(System.IntPtr obj);
447 public static Efl.Eo.FunctionWrapper<efl_input_device_has_pointer_caps_api_delegate> efl_input_device_has_pointer_caps_ptr = new Efl.Eo.FunctionWrapper<efl_input_device_has_pointer_caps_api_delegate>(_Module, "efl_input_device_has_pointer_caps");
448 private static uint has_pointer_caps(System.IntPtr obj, System.IntPtr pd)
450 Eina.Log.Debug("function efl_input_device_has_pointer_caps was called");
451 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
452 if(wrapper != null) {
453 uint _ret_var = default( uint);
455 _ret_var = ((Device)wrapper).HasPointerCaps();
456 } catch (Exception e) {
457 Eina.Log.Warning($"Callback error: {e.ToString()}");
458 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
462 return efl_input_device_has_pointer_caps_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
465 private static efl_input_device_has_pointer_caps_delegate efl_input_device_has_pointer_caps_static_delegate;
468 namespace Efl { namespace Input {
469 /// <summary>General type of input device.
470 /// Legacy support since 1.8 as <c>Evas_Device_Class</c>.</summary>
471 public enum DeviceType
473 /// <summary>Not a device.</summary>
475 /// <summary>The user/seat (the user themselves).</summary>
477 /// <summary>A regular keyboard, numberpad or attached buttons.</summary>
479 /// <summary>A mouse, trackball or touchpad relative motion device.</summary>
481 /// <summary>A touchscreen with fingers or stylus.</summary>
483 /// <summary>A special pen device.</summary>
485 /// <summary>A laser pointer, wii-style or "Minority Report" pointing device.</summary>
487 /// <summary>A gamepad controller or joystick.</summary>
491 namespace Efl { namespace Input {
492 /// <summary>General type of input device.
493 /// Legacy support since 1.8 as <c>Evas_Device_Subclass</c>.</summary>
494 public enum DeviceSubtype
496 /// <summary>Not a device.</summary>
498 /// <summary>The normal flat of your finger.</summary>
500 /// <summary>A fingernai.</summary>
502 /// <summary>A Knuckle.</summary>
504 /// <summary>The palm of a users hand.</summary>
506 /// <summary>The side of your hand.</summary>
508 /// <summary>The flat of your hand.</summary>
510 /// <summary>The tip of a pen.</summary>
512 /// <summary>A trackpad style mouse.</summary>
514 /// <summary>A trackpoint style mouse.</summary>
516 /// <summary>A trackball style mouse.</summary>
518 /// <summary>A remote controller.</summary>
520 /// <summary>A virtual keyboard.</summary>
521 VirtualKeyboard = 12,