2016-05-12 03:37:43 -07:00
|
|
|
class Elm.Check (Efl.Ui.Nstate, Elm.Interface.Atspi_Widget_Action)
|
2014-03-20 01:27:21 -07:00
|
|
|
{
|
2016-04-29 01:40:54 -07:00
|
|
|
[[Check widget
|
|
|
|
|
|
|
|
The check widget allows for toggling a value between true and false.
|
|
|
|
Check objects are a lot like radio objects in layout and functionality,
|
|
|
|
except they do not work as a group, but independently, and only toggle
|
|
|
|
the value of a boolean between false and true.
|
|
|
|
]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_check;
|
elm_nstate: introduce nstate widget and inherit check from it
Test Plan:
elementary_test -to "nstate"
@feature
Reviewers: yashu21985, tasn, Hermet, seoz, smohanty, felipealmeida, JackDanielZ, jypark, woohyun, herdsman, raster, cedric, jpeg
Subscribers: saurabhbunty, seoz
Differential Revision: https://phab.enlightenment.org/D3786
2016-04-07 02:25:59 -07:00
|
|
|
eo_prefix: efl_ui_check;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
elm_nstate: introduce nstate widget and inherit check from it
Test Plan:
elementary_test -to "nstate"
@feature
Reviewers: yashu21985, tasn, Hermet, seoz, smohanty, felipealmeida, JackDanielZ, jypark, woohyun, herdsman, raster, cedric, jpeg
Subscribers: saurabhbunty, seoz
Differential Revision: https://phab.enlightenment.org/D3786
2016-04-07 02:25:59 -07:00
|
|
|
@property selected {
|
2016-04-29 01:40:54 -07:00
|
|
|
[[The on/off state of the check object.]]
|
2014-03-20 01:27:21 -07:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-04-29 01:40:54 -07:00
|
|
|
value: bool; [[$true if the check object is selected, $false otherwise]]
|
2014-03-20 01:27:21 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
2016-06-17 01:26:08 -07:00
|
|
|
Efl.Canvas.Group.group_add;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.activate;
|
|
|
|
Elm.Widget.theme_apply;
|
|
|
|
Elm.Widget.sub_object_del;
|
|
|
|
Elm.Widget.event;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.text_aliases.get;
|
2016-05-09 23:31:53 -07:00
|
|
|
Efl.Ui.Nstate.count.set;
|
|
|
|
Efl.Ui.Nstate.value.set;
|
2016-05-12 03:37:43 -07:00
|
|
|
Elm.Interface.Atspi_Accessible.state_set.get;
|
|
|
|
Elm.Interface.Atspi_Widget_Action.elm_actions.get;
|
2014-03-20 01:27:21 -07:00
|
|
|
}
|
|
|
|
events {
|
2016-04-29 01:40:54 -07:00
|
|
|
changed; [[This is called whenever the user changes the state of the check
|
|
|
|
objects (event_info is always NULL).]]
|
2014-03-20 01:27:21 -07:00
|
|
|
}
|
|
|
|
}
|