Esempio n. 1
0
            /// <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);
            }
Esempio n. 2
0
                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");

                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        bool _ret_var = default(bool);
                        try
                        {
                            _ret_var = ((IState)ws.Target).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));
                    }
                }