The check widget allows for toggling a value between true and false. More...
Macros | |
#define | ELM_CHECK_CLASS elm_check_class_get() |
Check widget. More... | |
#define | EFL_UI_CHECK_EVENT_CHANGED (&(_EFL_UI_CHECK_EVENT_CHANGED)) |
This is called whenever the user changes the state of the check objects (event_info is always NULL). | |
Functions | |
EOAPI void | efl_ui_check_selected_set (Eo *obj, Eina_Bool value) |
The on/off state of the check object. More... | |
EOAPI Eina_Bool | efl_ui_check_selected_get (const Eo *obj) |
The on/off state of the check object. More... | |
void | elm_check_selected_set (Elm_Check *obj, Eina_Bool value) |
Check widget. More... | |
Eina_Bool | elm_check_selected_get (const Elm_Check *obj) |
The on/off state of the check object. More... | |
Evas_Object * | elm_check_add (Evas_Object *parent) |
Add a new Check object. More... | |
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. elm_check_state_set() sets the boolean state and elm_check_state_get() returns the current state. For convenience, like the radio objects, you can set a pointer to a boolean directly with elm_check_state_pointer_set() for it to modify.
This widget inherits from the Layout one, so that all the functions acting on it also work for check objects.
This widget emits the following signals, besides the ones sent from Layout:
"changed"
- This is called whenever the user changes the state of the check objects (event_info
is always NULL
)."focused"
- When the check has received focus. (since 1.8)"unfocused"
- When the check has lost focus. (since 1.8)"language,changed"
- the program's language changed (since 1.9)Default content parts of the check widget that you can use for are:
Default text parts of the check widget that you can use for are:
Supported elm_object common APIs.
tutorial_check should give you a firm grasp of how to use this widget.
#define ELM_CHECK_CLASS elm_check_class_get() |
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.
The on/off state of the check object.
[in] | value | true if the check object is selected, false otherwise |
Referenced by elm_check_selected_set().
The on/off state of the check object.
true
if the check object is selected, false
otherwise Referenced by elm_check_selected_get().
void elm_check_selected_set | ( | Elm_Check * | obj, |
Eina_Bool | value | ||
) |
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. The on/off state of the check object.
[in] | value | true if the check object is selected, false otherwise |
References efl_ui_check_selected_set().
Eina_Bool elm_check_selected_get | ( | const Elm_Check * | obj | ) |
The on/off state of the check object.
true
if the check object is selected, false
otherwise References efl_ui_check_selected_get().
Evas_Object* elm_check_add | ( | Evas_Object * | parent | ) |
Add a new Check object.
parent | The parent object |