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
|
|
|
interface Efl.Ui.Radio_Group extends Efl.Ui.Single_Selectable
|
2019-05-29 04:03:37 -07:00
|
|
|
{
|
2019-05-31 04:18:24 -07:00
|
|
|
[[Interface for manually handling a group of @Efl.Ui.Radio buttons.
|
2019-05-29 04:03:37 -07:00
|
|
|
|
2019-05-31 04:18:24 -07:00
|
|
|
See the documentation of @Efl.Ui.Radio for an explanation of radio button grouping.
|
2019-10-14 00:55:52 -07:00
|
|
|
|
|
|
|
@since 1.23
|
2019-05-29 04:03:37 -07:00
|
|
|
]]
|
|
|
|
methods {
|
|
|
|
@property selected_value {
|
2019-05-31 04:18:24 -07:00
|
|
|
[[The value associated with the currently selected button in the group.
|
|
|
|
Give each radio button in the group a different value using @Efl.Ui.Radio.state_value.
|
2019-05-29 04:03:37 -07:00
|
|
|
|
2019-05-31 04:18:24 -07:00
|
|
|
A value of -1 means that no button is selected.
|
|
|
|
Only values associated with the buttons in the group (and -1) can be used.
|
2019-05-29 04:03:37 -07:00
|
|
|
]]
|
|
|
|
values {
|
2019-05-31 04:18:24 -07:00
|
|
|
selected_value : int; [[The value of the currently selected radio button, or -1.]]
|
2019-05-29 04:03:37 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
register {
|
2019-05-31 04:18:24 -07:00
|
|
|
[[Register a new @Efl.Ui.Radio button to this group.
|
|
|
|
Keep in mind that registering to a group will only handle button grouping, you still
|
|
|
|
need to add the button to a layout for it to be rendered.
|
2019-05-29 04:03:37 -07:00
|
|
|
|
2019-05-31 04:18:24 -07:00
|
|
|
If the @Efl.Ui.Radio.state_value of the new button is already used by a previous
|
|
|
|
button in the group, the button will not be added.
|
|
|
|
|
|
|
|
See also @.unregister.
|
2019-05-29 04:03:37 -07:00
|
|
|
]]
|
|
|
|
params {
|
2019-05-31 04:18:24 -07:00
|
|
|
radio : Efl.Ui.Radio; [[The radio button to add to the group.]]
|
2019-05-29 04:03:37 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
unregister {
|
2019-05-31 04:18:24 -07:00
|
|
|
[[Unregister an @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.
|
2019-05-29 04:03:37 -07:00
|
|
|
|
2019-05-31 04:18:24 -07:00
|
|
|
See also @.register.
|
2019-05-29 04:03:37 -07:00
|
|
|
]]
|
|
|
|
params {
|
2019-05-31 04:18:24 -07:00
|
|
|
radio : Efl.Ui.Radio; [[The radio button to remove from the group.]]
|
2019-05-29 04:03:37 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
events {
|
2019-05-31 04:18:24 -07:00
|
|
|
value,changed : int; [[Emitted each time the $selected_value changes. The event information
|
|
|
|
contains the @Efl.Ui.Radio.state_value of the newly selected button or
|
|
|
|
-1 if no button is now selected.]]
|
2019-05-29 04:03:37 -07:00
|
|
|
}
|
|
|
|
}
|