Beispiel #1
0
                private static void bind_clickable_to_object(System.IntPtr obj, System.IntPtr pd, Efl.Input.IInterface kw_object, Efl.Input.IClickable clickable)
                {
                    Eina.Log.Debug("function efl_ui_action_connector_bind_clickable_to_object was called");
                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        try
                        {
                            ActionConnector.BindClickableToObject(kw_object, clickable);
                        }
                        catch (Exception e)
                        {
                            Eina.Log.Warning($"Callback error: {e.ToString()}");
                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                        }
                    }
                    else
                    {
                        efl_ui_action_connector_bind_clickable_to_object_ptr.Value.Delegate(kw_object, clickable);
                    }
                }
Beispiel #2
0
 /// <summary>This will listen to the standard &quot;click&quot; events on an object, and emit the appropriate events through the <see cref="Efl.Input.IClickable"/> interface.
 /// Using these methods widgets do not need to listen to the object events. This class does it and calls the correct clickable functions.
 ///
 /// The handled events are <see cref="Efl.Input.IInterface.PointerUpEvt"/> and <see cref="Efl.Input.IInterface.PointerDownEvt"/>.</summary>
 /// <param name="kw_object">The object to listen on.</param>
 /// <param name="clickable">The object to call the clickable methods on.</param>
 public static void BindClickableToObject(Efl.Input.IInterface kw_object, Efl.Input.IClickable clickable)
 {
     Efl.Ui.ActionConnector.NativeMethods.efl_ui_action_connector_bind_clickable_to_object_ptr.Value.Delegate(kw_object, clickable);
     Eina.Error.RaiseIfUnhandledException();
 }
Beispiel #3
0
 /// <summary>This will listen to the standard &quot;click&quot; events on an object, and emit the appropriate events through the <see cref="Efl.Ui.IClickable"/> interface.
 /// Using these methods widgets do not need to listen to the object events. This class does it and calls the correct clickable functions.
 ///
 /// The handled events are <see cref="Efl.Input.IInterface.PointerUpEvt"/> and <see cref="Efl.Input.IInterface.PointerDownEvt"/>.</summary>
 /// <param name="kw_object">The object to listen on.</param>
 /// <param name="clickable">The object to call the clickable methods on.</param>
 public static void BindToObject(Efl.Input.IInterface kw_object, Efl.Ui.IClickable clickable)
 {
     Efl.Ui.ClickableUtil.NativeMethods.efl_ui_clickable_util_bind_to_object_ptr.Value.Delegate(kw_object, clickable);
     Eina.Error.RaiseIfUnhandledException();
 }