2019-09-02 07:24:26 -07:00
|
|
|
class @beta Efl.Ui.Check extends Efl.Ui.Layout_Base
|
|
|
|
implements Efl.Access.Widget.Action, Efl.Text, Efl.Content, Efl.Input.Clickable,
|
|
|
|
Efl.Ui.Selectable
|
2014-03-20 01:27:21 -07:00
|
|
|
{
|
2019-09-16 03:56:35 -07:00
|
|
|
[[Check widget.
|
2016-04-29 01:40:54 -07:00
|
|
|
|
2019-09-16 03:56:35 -07:00
|
|
|
The check widget allows for toggling a value between $true and $false.
|
|
|
|
Check objects are a lot like @Efl.Ui.Radio objects in layout and functionality,
|
2016-04-29 01:40:54 -07:00
|
|
|
except they do not work as a group, but independently, and only toggle
|
2019-09-16 03:56:35 -07:00
|
|
|
the value of a boolean between $false and $true. The boolean value of the check can be retrieved using the
|
|
|
|
@Efl.Ui.Selectable.selected property.
|
|
|
|
Changes to @Efl.Ui.Selectable.selected can be listed to using the @[Efl.Ui.Selectable.selected,changed] event.
|
2016-04-29 01:40:54 -07:00
|
|
|
]]
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
2014-03-20 01:27:21 -07:00
|
|
|
}
|
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.on_access_activate;
|
|
|
|
Efl.Ui.Widget.theme_apply;
|
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; }
|
efl_ui_check: make it undependend of nstate
Summary:
check can only display 2 states, and is only designed to do so.
Additionally, nstate inherits from button, which
brings in autorepeat, which is hileriously broken on check and cannot
really work.
Right now there is not even support in the theme for clickable. So its a
good idea to get rid of this for now IMO.
ref T7865
Reviewers: stefan_schmidt, zmike, segfaultxavi, akanad, YOhoho
Reviewed By: zmike
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7865, T7867
Differential Revision: https://phab.enlightenment.org/D9018
2019-06-13 06:21:38 -07:00
|
|
|
Efl.Content.content { get; set; }
|
|
|
|
Efl.Content.content_unset;
|
|
|
|
Efl.Text.text { get; set; }
|
|
|
|
Efl.Ui.L10n.l10n_text { get; set; }
|
2019-08-05 10:42:02 -07:00
|
|
|
Efl.Ui.Selectable.selected {get; set; }
|
2014-03-20 01:27:21 -07:00
|
|
|
}
|
|
|
|
}
|