示例#1
0
                private static void bind_clickable_to_theme(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Layout kw_object, Efl.Input.IClickable clickable)
                {
                    Eina.Log.Debug("function efl_ui_action_connector_bind_clickable_to_theme was called");
                    var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                    if (ws != null)
                    {
                        try
                        {
                            ActionConnector.BindClickableToTheme(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_theme_ptr.Value.Delegate(kw_object, clickable);
                    }
                }
示例#2
0
 /// <summary>This will listen to the standard &quot;click&quot; events on a theme and emit the appropriate events through the <see cref="Efl.Input.IClickable"/> interface.
 /// Using these methods widgets do not need to listen to the theme signals. This class does it and calls the correct clickable functions.
 ///
 /// This handles theme signals &quot;efl,action,press&quot;, &quot;efl,action,unpress&quot; and &quot;efl,action,mouse_out&quot;, and the <see cref="Efl.Input.IInterface.PointerMoveEvt"/> event.</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 BindClickableToTheme(Efl.Canvas.Layout kw_object, Efl.Input.IClickable clickable)
 {
     Efl.Ui.ActionConnector.NativeMethods.efl_ui_action_connector_bind_clickable_to_theme_ptr.Value.Delegate(kw_object, clickable);
     Eina.Error.RaiseIfUnhandledException();
 }
示例#3
0
 /// <summary>This will listen to the standard &quot;click&quot; events on a theme and emit the appropriate events through the <see cref="Efl.Ui.IClickable"/> interface.
 /// Using these methods widgets do not need to listen to the theme signals. This class does it and calls the correct clickable functions.
 ///
 /// This handles theme signals &quot;efl,action,press&quot;, &quot;efl,action,unpress&quot; and &quot;efl,action,mouse_out&quot;, and the <see cref="Efl.Input.IInterface.PointerMoveEvt"/> event.</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 BindToTheme(Efl.Canvas.Layout kw_object, Efl.Ui.IClickable clickable)
 {
     Efl.Ui.ClickableUtil.NativeMethods.efl_ui_clickable_util_bind_to_theme_ptr.Value.Delegate(kw_object, clickable);
     Eina.Error.RaiseIfUnhandledException();
 }