ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
edje_object_message_signal_process(wd->resize_obj);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
}
else
edje_object_message_signal_process(wd->resize_obj);
}
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static Eo *
pd->anchor = NULL;
//Add align calc only
Eina_Bool needs_size_calc = ppd->needs_size_calc;
- elm_layout_sizing_eval(data);
+ efl_canvas_group_change(data);
+ efl_canvas_group_calculate(data);
ppd->needs_size_calc = needs_size_calc;
}
//Add align/anchor calc only
Eina_Bool needs_size_calc = ppd->needs_size_calc;
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
+ efl_canvas_group_calculate(obj);
ppd->needs_size_calc = needs_size_calc;
}
_efl_ui_anchor_popup_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Anchor_Popup_Data *pd)
{
EFL_UI_POPUP_DATA_GET_OR_RETURN(obj, ppd);
- /* When elm_layout_sizing_eval() is called, just flag is set instead of size
+ /* When efl_canvas_group_change() is called, just flag is set instead of size
* calculation.
* The actual size calculation is done here when the object is rendered to
* avoid duplicate size calculations. */
elm_layout_signal_emit(obj, buf, "elm");
edje_object_message_signal_process(elm_layout_edje_get(obj));
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
/* FIXME: replicated from elm_layout just because button's icon spot
edje_object_message_signal_process(wd->resize_obj);
- elm_layout_sizing_eval(obj);
-
return int_ret;
}
elm_layout_signal_emit(obj, buf, "elm");
edje_object_message_signal_process(wd->resize_obj);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
/* FIXME: replicated from elm_layout just because check's icon spot
sd->freeze_sizing = freeze;
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
_field_list_display(obj);
}
}
edje_object_message_signal_process(wd->resize_obj);
- elm_layout_sizing_eval(obj);
return int_ret;
}
//
priv->freeze_sizing = EINA_FALSE;
- elm_layout_sizing_eval(obj);
// ACCESS
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON)
}
sd->freeze_sizing = EINA_FALSE;
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
if (!visible) return;
{
static void
_recalc(void *data, const Efl_Event *event EINA_UNUSED)
{
- elm_layout_sizing_eval(data);
+ efl_canvas_group_calculate(data);
}
static void
(wd->resize_obj, EFL_LAYOUT_EVENT_RECALC, _recalc, data);
sd->anim = EINA_FALSE;
- elm_layout_sizing_eval(data);
+ efl_canvas_group_calculate(data);
}
static void
elm_widget_theme_element_get(obj),
elm_widget_theme_style_get(obj)) == EFL_UI_THEME_APPLY_ERROR_GENERIC)
CRI("Failed to set layout!");
-
- elm_layout_sizing_eval(obj);
}
EOLIAN static Eo *
if (sd->edje)
{
int ret = edje_object_thaw(sd->img);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_calculate(obj);
return ret;
}
return 0;
Elm_Part_Data *wd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
efl_text_set(efl_part(efl_super(wd->obj, MY_CLASS), wd->part), text);
- elm_layout_sizing_eval(wd->obj);
+ efl_canvas_group_change(wd->obj);
}
EOLIAN static const char*
Elm_Part_Data *wd = efl_data_scope_get(obj, EFL_UI_WIDGET_PART_CLASS);
efl_text_markup_set(efl_part(efl_super(wd->obj, MY_CLASS), wd->part), markup);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static const char*
{
if (!efl_alive_get(data)) return;
ELM_WIDGET_DATA_GET_OR_RETURN(data, wd);
- elm_layout_sizing_eval(data);
+ efl_canvas_group_change(data);
}
static void
_efl_ui_layout_highlight_in_theme(obj);
_flush_mirrored_state(obj);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return EINA_TRUE;
}
// No need to resize object during destruction
if (wd->resize_obj && efl_alive_get(obj))
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return EINA_TRUE;
}
const char *emission EINA_UNUSED,
const char *source EINA_UNUSED)
{
- elm_layout_sizing_eval(data);
+ efl_canvas_group_change(data);
+ efl_canvas_group_calculate(data);
}
EOLIAN static void
_icon_signal_emit(sd, sub_d, EINA_TRUE);
}
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
end:
return EINA_TRUE;
edje_object_part_text_escaped_set
(wd->resize_obj, part, NULL);
sd->subs = eina_list_remove_list(sd->subs, l);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return EINA_TRUE;
}
else
_text_signal_emit(sd, sub_d, EINA_TRUE);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON &&
sd->can_access && !(sub_d->obj))
sub_d->type = BOX_APPEND;
_layout_box_subobj_init(sd, sub_d, part, child);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return EINA_TRUE;
}
sub_d->type = BOX_PREPEND;
_layout_box_subobj_init(sd, sub_d, part, child);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return EINA_TRUE;
}
evas_object_event_callback_add
((Evas_Object *)reference, EVAS_CALLBACK_DEL, _box_reference_del, sub_d);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return EINA_TRUE;
}
sub_d->p.box.pos = pos;
_layout_box_subobj_init(sd, sub_d, part, child);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return EINA_TRUE;
}
sd->subs = eina_list_append(sd->subs, sub_d);
efl_parent_set(child, obj);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return EINA_TRUE;
}
sd->restricted_calc_w = !!w;
sd->restricted_calc_h = !!h;
- evas_object_smart_changed(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static int
edje_object_thaw(wd->resize_obj);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return 0;
}
_efl_ui_list_view_bar_hide_cb, obj);
_efl_ui_list_view_edje_object_attach(obj);
-
- elm_layout_sizing_eval(obj);
}
EOLIAN static void
efl_content_set(efl_part(efl_super(obj, MY_CLASS), "efl.swallow.event"), sd->event);
}
- if (efl_finalized_get(obj))
- elm_layout_sizing_eval(obj);
-
return int_ret;
}
elm_widget_sub_object_add(sd->scr_ly, sd->content);
}
efl_event_callback_call(obj, EFL_CONTENT_EVENT_CONTENT_CHANGED, content);
- if (efl_alive_get(obj))
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return EINA_TRUE;
}
evas_object_size_hint_min_set(sd->scr_event, w, h);
break;
}
- if (efl_finalized_get(obj))
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static void
else
_orient_set_do(obj);
- if (efl_finalized_get(obj))
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static Efl_Ui_Panel_Orient
elm_layout_signal_emit(obj, "efl,panes,fixed", "efl");
}
- elm_layout_sizing_eval(obj);
-
elm_panes_content_left_size_set(obj, size);
return int_ret;
}
}
elm_widget_sub_object_add(obj, sd->event);
-
- elm_layout_sizing_eval(obj);
}
EOLIAN static Eo *
{
if (sd->first_hint_min_allow == allow) return;
sd->first_hint_min_allow = allow;
- elm_layout_sizing_eval(pd->obj);
+ efl_canvas_group_change(pd->obj);
}
else if (!strcmp(pd->part, "second"))
{
if (sd->second_hint_min_allow == allow) return;
sd->second_hint_min_allow = allow;
- elm_layout_sizing_eval(pd->obj);
+ efl_canvas_group_change(pd->obj);
}
}
{
efl_gfx_entity_size_set(efl_super(obj, MY_CLASS), size);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
static void
//Add align calc only
Eina_Bool needs_size_calc = pd->needs_size_calc;
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
+ efl_canvas_group_calculate(obj);
pd->needs_size_calc = needs_size_calc;
}
//Add align calc only
Eina_Bool needs_size_calc = pd->needs_size_calc;
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
+ efl_canvas_group_calculate(obj);
pd->needs_size_calc = needs_size_calc;
}
EOLIAN static void
_efl_ui_popup_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Popup_Data *pd)
{
- /* When elm_layout_sizing_eval() is called, just flag is set instead of size
+ /* When efl_canvas_group_change() is called, just flag is set instead of size
* calculation.
* The actual size calculation is done here when the object is rendered to
* avoid duplicate size calculations. */
edje_object_message_signal_process(wd->resize_obj);
- elm_layout_sizing_eval(obj);
-
return int_ret;
}
_units_set(obj);
_val_set(obj);
- elm_layout_sizing_eval(obj);
-
if (_elm_config->access_mode == ELM_ACCESS_MODE_ON)
elm_widget_can_focus_set(obj, EINA_TRUE);
(sd->spacer, 1, (double)sd->size * efl_gfx_entity_scale_get(obj) *
elm_config_scale_get());
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
static void
elm_layout_signal_emit(obj, signal_name, ns);
edje_object_message_signal_process(wd->resize_obj);
_units_set(obj);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static Eina_Bool
elm_layout_signal_emit(obj, buf, "elm");
edje_object_message_signal_process(elm_layout_edje_get(obj));
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
/* FIXME: replicated from elm_layout just because progressbar's icon spot
edje_object_message_signal_process(wd->resize_obj);
- elm_layout_sizing_eval(obj);
-
return int_ret;
}
pd->group->radios = eina_list_append(pd->group->radios, obj);
}
- elm_layout_sizing_eval(obj);
-
efl_access_object_role_set(obj, EFL_ACCESS_ROLE_RADIO_BUTTON);
_elm_access_text_set
(_elm_access_info_get(obj), ELM_ACCESS_TYPE, E_("Radio"));
elm_layout_signal_emit(obj, buf, "elm");
edje_object_message_signal_process(edje);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static Eina_Error
EOLIAN static void
_efl_ui_scroll_alert_popup_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Scroll_Alert_Popup_Data *pd)
{
- /* When elm_layout_sizing_eval() is called, just flag is set instead of size
+ /* When efl_canvas_group_change() is called, just flag is set instead of size
* calculation.
* The actual size calculation is done here when the object is rendered to
* avoid duplicate size calculations. */
pd->max_size = max_size;
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
static Eina_Size2D
efl_gfx_entity_size_set(obj, size);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static Eo *
_scroll_connector_resized_cb(void *data, const Efl_Event *ev EINA_UNUSED)
{
Scroll_Connector_Context *ctx = data;
- elm_layout_sizing_eval(ctx->obj);
+ efl_canvas_group_change(ctx->obj);
}
static void
_scroll_connector_size_hint_changed_cb(void *data, const Efl_Event *ev EINA_UNUSED)
{
Scroll_Connector_Context *ctx = data;
- elm_layout_sizing_eval(ctx->obj);
+ efl_canvas_group_change(ctx->obj);
}
void
efl_content_set(sd->pan_obj, content);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
return EINA_TRUE;
}
static void
_efl_ui_scroller_pan_resized_cb(void *data, const Efl_Event *ev EINA_UNUSED)
{
- elm_layout_sizing_eval(data);
+ efl_canvas_group_change(data);
}
static void
efl_ui_mirrored_set(sd->smanager, efl_ui_mirrored_get(obj));
- elm_layout_sizing_eval(obj);
-
return int_ret;
}
efl_ui_scrollable_match_content_set(sd->smanager, match_content_w, match_content_h);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static Eina_Bool
_label_write(obj, sd);
elm_widget_can_focus_set(obj, EINA_TRUE);
- elm_layout_sizing_eval(obj);
-
return obj;
}
_efl_ui_spin_efl_ui_format_apply_formatted_value(Eo *obj, Efl_Ui_Spin_Data *sd EINA_UNUSED)
{
_label_write(obj, sd);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static void
_access_spinner_register(obj, EINA_TRUE);
_label_write(obj);
- elm_layout_sizing_eval(obj);
return EFL_UI_THEME_APPLY_ERROR_NONE;
}
{
EINA_LIST_FOREACH (sd->layouts, l, layout)
{
- elm_layout_sizing_eval(layout);
- evas_object_smart_calculate(layout);
+ efl_canvas_group_calculate(layout);
min = efl_gfx_hint_size_combined_min_get(layout);
}
- elm_layout_sizing_eval(sd->scroller);
+ efl_canvas_group_calculate(sd->scroller);
min = efl_gfx_hint_size_min_get(sd->scroller);
if (sd->single_line)
{
_create_text_cursors(obj, sd);
sd->calc_force = EINA_TRUE;
- elm_layout_sizing_eval(obj);
return obj;
{
sd->calc_force = EINA_TRUE;
edje_object_calc_force(sd->entry_edje);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_calculate(obj);
}
static const char*
Efl_Text_Cursor_Cursor *cur_obj = efl_text_cursor_get(obj, EFL_TEXT_CURSOR_GET_TYPE_MAIN);
efl_text_cursor_text_insert(obj, cur_obj, entry);
sd->text_changed = EINA_TRUE;
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static void
efl_del(sd->scroller);
sd->scroller = NULL;
}
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static Eina_Bool
sd->cursor_update = EINA_TRUE;
_update_guide_text(data, sd);
efl_event_callback_call(event->object, EFL_UI_TEXT_EVENT_CHANGED, NULL);
- elm_layout_sizing_eval(data);
+ efl_canvas_group_change(data);
_decoration_defer(data);
}
EFL_UI_TEXT_DATA_GET(obj, sd);
sd->text_changed = EINA_TRUE;
_update_guide_text(data, sd);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
_decoration_defer_all(obj);
}
efl_gfx_entity_size_set(obj, size);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
static void
EOLIAN static void
_efl_ui_text_alert_popup_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Text_Alert_Popup_Data *pd)
{
- /* When elm_layout_sizing_eval() is called, just flag is set instead of size
+ /* When efl_canvas_group_change() is called, just flag is set instead of size
* calculation.
* The actual size calculation is done here when the object is rendered to
* avoid duplicate size calculations. */
efl_content_set(pd->scroller, pd->message);
}
elm_object_text_set(pd->message, label);
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
else
efl_text_set(efl_part(efl_super(obj, MY_CLASS), part), label);
pd->max_size = max_size;
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
EOLIAN static Eo *
Evas_Object *obj,
void *event_info EINA_UNUSED)
{
- elm_layout_sizing_eval(obj);
+ efl_canvas_group_change(obj);
}
static void
static void
_on_aspect_ratio_updated(void *data, const Efl_Event *event EINA_UNUSED)
{
- elm_layout_sizing_eval(data);
+ efl_canvas_group_change(data);
}
static void