2017-05-22 02:56:52 -07:00
|
|
|
class Efl.Ui.Radio (Efl.Ui.Check, Elm.Interface.Atspi_Widget_Action)
|
2014-03-26 00:50:10 -07:00
|
|
|
{
|
2016-11-24 02:50:22 -08:00
|
|
|
[[Elementary radio class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_radio;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property state_value {
|
2014-03-26 00:50:10 -07:00
|
|
|
set {
|
2015-07-03 07:52:29 -07:00
|
|
|
[[Set the integer value that this radio object represents
|
2014-03-26 00:50:10 -07:00
|
|
|
|
2015-07-03 07:52:29 -07:00
|
|
|
This sets the value of the radio.
|
|
|
|
]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-03 07:52:29 -07:00
|
|
|
[[Get the integer value that this radio object represents
|
2014-03-26 00:50:10 -07:00
|
|
|
|
2015-07-03 07:52:29 -07:00
|
|
|
This gets the value of the radio.
|
|
|
|
]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-03 07:52:29 -07:00
|
|
|
value: int; [[The value to use if this radio object is selected]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property value {
|
2014-03-26 00:50:10 -07:00
|
|
|
set {
|
2015-07-03 07:52:29 -07:00
|
|
|
[[Set the value of the radio group.
|
2014-03-26 00:50:10 -07:00
|
|
|
|
2015-07-03 07:52:29 -07:00
|
|
|
This sets the value of the radio group and will also set the
|
|
|
|
value if pointed to, to the value supplied, but will not call
|
|
|
|
any callbacks.
|
|
|
|
]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-03 07:52:29 -07:00
|
|
|
[[Get the value of the radio group]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
values {
|
2015-07-03 07:52:29 -07:00
|
|
|
value: int; [[The value to use for the group]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property value_pointer {
|
2014-03-26 00:50:10 -07:00
|
|
|
set {
|
2015-07-03 07:52:29 -07:00
|
|
|
[[Set a convenience pointer to a integer to change when radio group
|
|
|
|
value changes.
|
|
|
|
|
|
|
|
This sets a pointer to a integer, that, in addition to the radio
|
|
|
|
objects state will also be modified directly. To stop setting the
|
|
|
|
object pointed to simply use NULL as the valuep argument. If
|
|
|
|
valuep is not NULL, then when this is called, the radio objects
|
|
|
|
state will also be modified to reflect the value of the integer
|
|
|
|
valuep points to, just like calling elm_radio_value_set().
|
|
|
|
]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
values {
|
2016-11-10 06:43:15 -08:00
|
|
|
valuep: ptr(int) @nullable; [[Pointer to the integer to modify]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property selected_object {
|
2014-03-26 00:50:10 -07:00
|
|
|
get {
|
2015-07-03 07:52:29 -07:00
|
|
|
[[Get the selected radio object.]]
|
2016-06-20 21:26:15 -07:00
|
|
|
return: Efl.Canvas.Object; [[The selected radio object]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
group_add {
|
2015-07-03 07:52:29 -07:00
|
|
|
[[Add this radio to a group of other radio objects
|
2014-03-26 00:50:10 -07:00
|
|
|
|
2015-07-03 07:52:29 -07:00
|
|
|
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.
|
|
|
|
]]
|
2014-03-26 00:50:10 -07:00
|
|
|
|
|
|
|
params {
|
2017-05-22 02:56:52 -07:00
|
|
|
@in group: Efl.Ui.Radio; [[Any radio object whose group the obj is
|
2016-05-23 07:41:28 -07:00
|
|
|
to join.]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.theme_apply;
|
2017-08-23 23:21:59 -07:00
|
|
|
Elm.Widget.on_access_activate;
|
2017-01-01 23:48:17 -08:00
|
|
|
Elm.Widget.widget_event;
|
2016-12-27 10:15:41 -08:00
|
|
|
Elm.Interface.Atspi_Accessible.state_set { get; }
|
|
|
|
Elm.Interface.Atspi_Widget_Action.elm_actions { get; }
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
events {
|
2016-11-24 02:50:22 -08:00
|
|
|
changed; [[Called when radio changed]]
|
2014-03-26 00:50:10 -07:00
|
|
|
}
|
|
|
|
}
|