Efl.Ui.Radio.state_value

Description

Integer value that this radio button represents.

Each radio button in a group must have a unique value. The selected button in a group can then be set or retrieved through the Efl.Ui.Radio_Group.selected_value property. This value is also informed through the Efl.Ui.Radio_Group.value,changed event.

All non-negative values are legal but keep in mind that 0 is the starting value for all new groups: If no button in the group has this value, then no button in the group is initially selected. -1 is the value that Efl.Ui.Radio_Group.selected_value returns when no button is selected and therefore cannot be used.

Since 1.23

Values

  • value - The value to use when this radio button is selected. Any value can be used but 0 and -1 have special meanings as described above.

Signature

@property state_value {
    get {}
    set {}
    values {
        value: int;
    }
}

C signature

int efl_ui_radio_state_value_get(const Eo *obj);
void efl_ui_radio_state_value_set(Eo *obj, int value);

Implemented by