declare first round of classes stable
this stabelizes the "stableized" column of the efl: api workboard.
fixes T8208,
fixes T8158,
fixes T8156,
fixes T8025,
fixes T8024,
fixes T7976,
fixes T7946,
fixes T7928,
fixes T7923,
fixes T7905,
fixes T7902,
fixes T7901,
fixes T7900,
fixes T7898,
fixes T7897,
fixes T7895,
fixes T7894,
fixes T7893,
fixes T7891,
fixes T7880,
fixes T7873,
fixes T7869,
fixes T7867,
fixes T7865,
fixes T7862,
fixes T7854,
fixes T7847,
fixes T7881,
fixes T7870,
fixes T9086
Differential Revision: https://phab.enlightenment.org/D10008
2019-09-09 02:23:04 -07:00
|
|
|
class Efl.Ui.Radio extends Efl.Ui.Check implements Efl.Access.Widget.Action
|
2014-03-26 00:50:10 -07:00
|
|
|
{
|
2019-05-31 04:18:24 -07:00
|
|
|
[[Elementary radio button class.
|
|
|
|
|
|
|
|
Radio buttons are like check boxes in that they can be either checked or unchecked.
|
|
|
|
However, radio buttons are always bunched together in groups, and only one button in
|
|
|
|
each group can be checked at any given time. Pressing a different button in the group
|
|
|
|
will automatically uncheck any previously checked button.
|
|
|
|
|
|
|
|
They are a common way to allow a user to select one option among a list.
|
|
|
|
|
2019-09-02 07:24:26 -07:00
|
|
|
To handle button grouping, you can either use an @Efl.Ui.Radio_Group_Impl object or
|
|
|
|
use more convenient widgets like @Efl.Ui.Radio_Box.
|
2019-10-14 00:55:52 -07:00
|
|
|
|
|
|
|
@since 1.23
|
2019-05-31 04:18:24 -07:00
|
|
|
]]
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property state_value {
|
2019-05-31 04:18:24 -07:00
|
|
|
[[Integer value that this radio button represents.
|
2014-03-26 00:50:10 -07:00
|
|
|
|
2019-05-31 04:18:24 -07:00
|
|
|
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.
|
2014-03-26 00:50:10 -07:00
|
|
|
|
2019-05-31 04:18:24 -07:00
|
|
|
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.
|
|
|
|
]]
|
|
|
|
set {}
|
|
|
|
get {}
|
2014-03-26 00:50:10 -07:00
|
|
|
values {
|
2019-05-31 04:18:24 -07:00
|
|
|
value: int; [[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.]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2017-11-01 10:15:48 -07:00
|
|
|
Efl.Object.destructor;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.theme_apply;
|
|
|
|
Efl.Ui.Widget.on_access_activate;
|
2019-03-04 10:37:18 -08:00
|
|
|
Efl.Ui.Widget.widget_input_event_handler;
|
2018-04-03 04:27:30 -07:00
|
|
|
Efl.Access.Object.state_set { get; }
|
2017-11-15 18:31:26 -08:00
|
|
|
Efl.Access.Widget.Action.elm_actions { get; }
|
2019-08-05 10:42:02 -07:00
|
|
|
Efl.Ui.Selectable.selected {set;}
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
}
|