private static Efl.Ui.Radio selected_object_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_radio_group_selected_object_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Ui.Radio _ret_var = default(Efl.Ui.Radio); try { _ret_var = ((RadioGroupImpl)ws.Target).GetSelectedObject(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_ui_radio_group_selected_object_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
private static void group_add(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Radio group) { Eina.Log.Debug("function efl_ui_radio_group_add was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { try { ((Radio)wrapper).AddGroup(group); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_radio_group_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), group); } }
private static void unregister(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Radio radio) { Eina.Log.Debug("function efl_ui_radio_group_unregister was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((RadioGroupImpl)ws.Target).Unregister(radio); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_radio_group_unregister_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), radio); } }
/// <summary>Unregister an <see cref="Efl.Ui.Radio"/> button from this group. This will unlink the behavior of this button from the other buttons in the group, but if it still belongs to a layout, it will still be rendered. /// If the button was not registered in the group the call is ignored. If the button was selected, no button will be selected in the group after this call. /// /// See also <see cref="Efl.Ui.IRadioGroup.Register"/>.</summary> /// <param name="radio">The radio button to remove from the group.</param> virtual public void Unregister(Efl.Ui.Radio radio) { Efl.Ui.IRadioGroupConcrete.NativeMethods.efl_ui_radio_group_unregister_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), radio); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Currently selected button in a radio button group, or <c>NULL</c> if no button is selected. /// See also <see cref="Efl.Ui.IRadioGroup.SelectedValue"/>.</summary> /// <param name="selected_object">The currently selected radio button in the group, or <c>NULL</c>.</param> virtual public void SetSelectedObject(Efl.Ui.Radio selected_object) { Efl.Ui.IRadioGroupConcrete.NativeMethods.efl_ui_radio_group_selected_object_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), selected_object); Eina.Error.RaiseIfUnhandledException(); }
private static void selected_object_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Radio selected_object) { Eina.Log.Debug("function efl_ui_radio_group_selected_object_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((RadioBox)ws.Target).SetSelectedObject(selected_object); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_radio_group_selected_object_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), selected_object); } }
/// <summary>Add this radio to a group of other radio objects /// Radio objects work in groups. Each member should have a different integer value assigned. In order to have them work as a group, they need to know about each other. This adds the given radio object to the group of which the group object indicated is a member.</summary> /// <param name="group">Any radio object whose group the obj is to join.</param> /// <returns></returns> virtual public void AddGroup(Efl.Ui.Radio group) { Efl.Ui.RadioNativeInherit.efl_ui_radio_group_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), group); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Unregister an <see cref="Efl.Ui.Radio"/> button from this group. This will unlink the behavior of this button from the other buttons in the group, but if it still belongs to a layout, it will still be rendered. /// If the button was not registered in the group the call is ignored. If the button was selected, no button will be selected in the group after this call. /// /// See also <see cref="Efl.Ui.IRadioGroup.Register"/>.</summary> /// <param name="radio">The radio button to remove from the group.</param> public void Unregister(Efl.Ui.Radio radio) { Efl.Ui.IRadioGroupConcrete.NativeMethods.efl_ui_radio_group_unregister_ptr.Value.Delegate(this.NativeHandle, radio); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Currently selected button in a radio button group, or <c>NULL</c> if no button is selected. /// See also <see cref="Efl.Ui.IRadioGroup.SelectedValue"/>.</summary> /// <param name="selected_object">The currently selected radio button in the group, or <c>NULL</c>.</param> public void SetSelectedObject(Efl.Ui.Radio selected_object) { Efl.Ui.IRadioGroupConcrete.NativeMethods.efl_ui_radio_group_selected_object_set_ptr.Value.Delegate(this.NativeHandle, selected_object); Eina.Error.RaiseIfUnhandledException(); }