private static void button_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.AlertPopupButton type, System.String text, Efl.Object icon) { Eina.Log.Debug("function efl_ui_alert_popup_button_set was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd); if (wrapper != null) { try { ((AlertPopup)wrapper).SetButton(type, text, icon); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_alert_popup_button_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), type, text, icon); } }
///<summary>Constructor for AlertPopupButtonClickedEvent.</summary> public AlertPopupButtonClickedEvent( Efl.Ui.AlertPopupButton Button_type = default(Efl.Ui.AlertPopupButton)) { this.Button_type = Button_type; }
/// <summary>Set popup buttons.</summary> /// <param name="type">Alert popup button type</param> /// <param name="text">Alert string on button</param> /// <param name="icon">Alert icon on button</param> virtual public void SetButton(Efl.Ui.AlertPopupButton type, System.String text, Efl.Object icon) { Efl.Ui.AlertPopup.NativeMethods.efl_ui_alert_popup_button_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), type, text, icon); Eina.Error.RaiseIfUnhandledException(); }