/// <summary>Returns whether the mouse pointer is logically inside the canvas. /// When this function is called it will return a value of either <c>false</c> or <c>true</c>, depending on whether a pointer,in or pointer,out event has been called previously. /// /// A return value of <c>true</c> indicates the mouse is logically inside the canvas, and <c>false</c> implies it is logically outside the canvas. /// /// A canvas begins with the mouse being assumed outside (<c>false</c>). /// (Since EFL 1.22)</summary> /// <param name="seat">The seat to consider, if <c>null</c> then the default seat will be used.</param> /// <returns><c>true</c> if the mouse pointer is inside the canvas, <c>false</c> otherwise</returns> public bool GetPointerInside(Efl.Input.Device seat) { var _ret_var = Efl.Canvas.IPointerNativeInherit.efl_canvas_pointer_inside_get_ptr.Value.Delegate(this.NativeHandle, seat); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_device_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Input.Device _ret_var = default(Efl.Input.Device); try { _ret_var = ((IEventConcrete)ws.Target).GetDevice(); } 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_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
/// <summary>Indicates whether a key modifier is on, such as Ctrl, Shift, ... /// (Since EFL 1.22)</summary> /// <param name="mod">The modifier key to test.</param> /// <param name="seat">The seat device, may be <c>null</c></param> /// <returns><c>true</c> if the key modifier is pressed.</returns> public bool GetModifierEnabled(Efl.Input.Modifier mod, Efl.Input.Device seat) { var _ret_var = Efl.Input.IStateConcrete.NativeMethods.efl_input_modifier_enabled_get_ptr.Value.Delegate(this.NativeHandle, mod, seat); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
/// <summary>Indicates whether a key lock is on, such as NumLock, CapsLock, ... /// (Since EFL 1.22)</summary> /// <param name="kw_lock">The lock key to test.</param> /// <param name="seat">The seat device, may be <c>null</c></param> /// <returns><c>true</c> if the key lock is on.</returns> public bool GetLockEnabled(Efl.Input.Lock kw_lock, Efl.Input.Device seat) { var _ret_var = Efl.Input.IStateConcrete.NativeMethods.efl_input_lock_enabled_get_ptr.Value.Delegate(this.NativeHandle, kw_lock, seat); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
private static Efl.Input.Device device_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_input_device_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { Efl.Input.Device _ret_var = default(Efl.Input.Device); try { _ret_var = ((Hold)wrapper).GetDevice(); } 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_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) { Eina.Log.Debug("function efl_input_device_set was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { try { ((Focus)wrapper).SetDevice(dev); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); } }
private static bool pointer_inside_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device seat) { Eina.Log.Debug("function efl_canvas_pointer_inside_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { bool _ret_var = default(bool); try { _ret_var = ((IPointer)wrapper).GetPointerInside(seat); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_canvas_pointer_inside_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), seat)); } }
private static void device_set(System.IntPtr obj, System.IntPtr pd, Efl.Input.Device dev) { Eina.Log.Debug("function efl_input_device_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((Hold)ws.Target).SetDevice(dev); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_input_device_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dev); } }
/// <summary>Input device that originated this event.</summary> /// <param name="dev">Input device origin</param> /// <returns></returns> virtual public void SetDevice(Efl.Input.Device dev) { Efl.Input.IEventNativeInherit.efl_input_device_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dev); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Input device that originated this event.</summary> /// <param name="dev">Input device origin</param> public void SetDevice(Efl.Input.Device dev) { Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate(this.NativeHandle, dev); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Input device that originated this event.</summary> /// <param name="dev">Input device origin</param> virtual public void SetDevice(Efl.Input.Device dev) { Efl.Input.IEventConcrete.NativeMethods.efl_input_device_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), dev); Eina.Error.RaiseIfUnhandledException(); }
private static bool lock_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Lock kw_lock, Efl.Input.Device seat) { Eina.Log.Debug("function efl_input_lock_enabled_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { bool _ret_var = default(bool); try { _ret_var = ((IState)ws.Target).GetLockEnabled(kw_lock, seat); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_input_lock_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), kw_lock, seat)); } }
/// <summary>Input device that originated this event. /// 1.19</summary> /// <param name="dev">Input device origin /// 1.19</param> /// <returns></returns> public void SetDevice(Efl.Input.Device dev) { Efl.Input.EventNativeInherit.efl_input_device_set_ptr.Value.Delegate(this.NativeHandle, dev); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Device source property</summary> /// <param name="src">Input device</param> virtual public void SetSource(Efl.Input.Device src) { Efl.Input.Device.NativeMethods.efl_input_device_source_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), src); Eina.Error.RaiseIfUnhandledException(); }
private static bool modifier_enabled_get(System.IntPtr obj, System.IntPtr pd, Efl.Input.Modifier mod, Efl.Input.Device seat) { Eina.Log.Debug("function efl_input_modifier_enabled_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd); if (wrapper != null) { bool _ret_var = default(bool); try { _ret_var = ((State)wrapper).GetModifierEnabled(mod, seat); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_input_modifier_enabled_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mod, seat)); } }