private static Efl.Input.DeviceType device_type_get(System.IntPtr obj, System.IntPtr pd)
                {
                    Eina.Log.Debug("function efl_input_device_type_get was called");
                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        Efl.Input.DeviceType _ret_var = default(Efl.Input.DeviceType);
                        try
                        {
                            _ret_var = ((Device)ws.Target).GetDeviceType();
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }

                        return(_ret_var);
                    }
                    else
                    {
                        return(efl_input_device_type_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
                    }
                }
Example #2
0
 private static void device_type_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.DeviceType klass)
 {
     Eina.Log.Debug("function efl_input_device_type_set was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
     if (wrapper != null)
     {
         try {
             ((Device)wrapper).SetDeviceType(klass);
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
     }
     else
     {
         efl_input_device_type_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), klass);
     }
 }
 /// <summary>Device type property</summary>
 /// <param name="klass">Input device class</param>
 virtual public void SetDeviceType(Efl.Input.DeviceType klass)
 {
     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);
     Eina.Error.RaiseIfUnhandledException();
 }
Example #4
0
 /// <summary>Device type property
 /// 1.18</summary>
 /// <param name="klass">Input device class
 /// 1.18</param>
 /// <returns></returns>
 virtual public void SetDeviceType(Efl.Input.DeviceType klass)
 {
     Efl.Input.DeviceNativeInherit.efl_input_device_type_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), klass);
     Eina.Error.RaiseIfUnhandledException();
 }