efl_ui_range_min_max_set(efl_added, 0, 10),
efl_ui_range_value_set(efl_added, 6),
efl_ui_range_step_set(efl_added, 2),
- efl_ui_spin_button_loop_set(efl_added, EINA_TRUE),
+ efl_ui_spin_button_circulate_set(efl_added, EINA_TRUE),
efl_ui_spin_button_editable_set(efl_added, EINA_TRUE),
efl_event_callback_add(efl_added, EFL_UI_SPIN_BUTTON_EVENT_DELAY_CHANGED,_spin_delay_changed_cb, NULL),
efl_pack(bx, efl_added));
Efl_Ui_Spin_Button_Data *sd = efl_data_scope_get(obj, MY_CLASS);
Efl_Ui_Spin_Data *pd = efl_data_scope_get(obj, EFL_UI_SPIN_CLASS);
- if (sd->loop)
+ if (sd->circulate)
{
if (new_val < pd->val_min)
new_val = pd->val_max;
}
EOLIAN static void
-_efl_ui_spin_button_loop_set(Eo *obj EINA_UNUSED, Efl_Ui_Spin_Button_Data *sd, Eina_Bool loop)
+_efl_ui_spin_button_circulate_set(Eo *obj EINA_UNUSED, Efl_Ui_Spin_Button_Data *sd, Eina_Bool circulate)
{
- sd->loop = loop;
+ sd->circulate = circulate;
}
EOLIAN static Eina_Bool
-_efl_ui_spin_button_loop_get(Eo *obj EINA_UNUSED, Efl_Ui_Spin_Button_Data *sd)
+_efl_ui_spin_button_circulate_get(Eo *obj EINA_UNUSED, Efl_Ui_Spin_Button_Data *sd)
{
- return sd->loop;
+ return sd->circulate;
}
EOLIAN static const Efl_Access_Action_Data *
@since 1.21
]]
methods {
- @property loop {
- [[Control whether the spin should loop when it reaches its minimum or maximum value.
+ @property circulate {
+ [[Control whether the spin should circulate value when it reaches its minimum or maximum value.
Disabled by default. If disabled, when the user tries to increment the
value,
but the value less step is less than minimum value. In this case,
the new displayed value will be the minimum value.
- When loop is enabled, when the user tries to increment the value,
+ When this is enabled, when the user tries to increment the value,
but displayed value plus step value is bigger than maximum value,
the new value will be the minimum value. When the the user tries to
decrement it, but the value less step is less than minimum value,
get {
}
values {
- loop: bool(false); [[$true to enable loop or $false to disable it.]]
+ circulate: bool(false); [[$true to enable circulate or $false to disable it.]]
}
}
@property editable {
Eina_Bool entry_reactivate : 1;
Eina_Bool editable : 1;
Eina_Bool inc_val : 1;
- Eina_Bool loop : 1;
+ Eina_Bool circulate : 1;
};
#endif