forked from enlightenment/efl
Evas/Edje/Elm: Use combined_min instead of min everywhere
This allows apps to set the objects min size with hint_min, while letting the rest of EFL define the minimum size with rstricted_min. I don't like the property names much...
This commit is contained in:
parent
44f445fe76
commit
37625fca91
|
@ -174,7 +174,7 @@ _custom_engine_layout_do(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED,
|
||||||
EINA_ITERATOR_FOREACH(it, sobj)
|
EINA_ITERATOR_FOREACH(it, sobj)
|
||||||
{
|
{
|
||||||
int x, y, h, w, mw, mh;
|
int x, y, h, w, mw, mh;
|
||||||
evas_object_size_hint_min_get(sobj, &mw, &mh);
|
efl_gfx_size_hint_combined_min_get(sobj, &mw, &mh);
|
||||||
x = (pw / count) * i;
|
x = (pw / count) * i;
|
||||||
y = (ph / count) * i;
|
y = (ph / count) * i;
|
||||||
w = mw;
|
w = mw;
|
||||||
|
|
|
@ -173,7 +173,7 @@ _custom_engine_layout_do(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED,
|
||||||
{
|
{
|
||||||
int x, y, mw, mh;
|
int x, y, mw, mh;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(item, &mw, &mh);
|
efl_gfx_size_hint_combined_min_get(item, &mw, &mh);
|
||||||
x = gx + c * gw / cols + (cs * gw / cols - mw) / 2;
|
x = gx + c * gw / cols + (cs * gw / cols - mw) / 2;
|
||||||
y = gy + r * gh / rows + (rs * gh / rows - mh) / 2;
|
y = gy + r * gh / rows + (rs * gh / rows - mh) / 2;
|
||||||
efl_gfx_size_set(item, mw, mh);
|
efl_gfx_size_set(item, mw, mh);
|
||||||
|
|
|
@ -116,7 +116,7 @@ _print_rect_stats(Evas_Object *rect)
|
||||||
evas_object_size_hint_align_get(rect, &x, &y);
|
evas_object_size_hint_align_get(rect, &x, &y);
|
||||||
fprintf(stdout, "\talign hints: h(%f), v(%f)\n", x, y);
|
fprintf(stdout, "\talign hints: h(%f), v(%f)\n", x, y);
|
||||||
|
|
||||||
evas_object_size_hint_min_get(rect, &w, &h);
|
efl_gfx_size_hint_combined_min_get(rect, &w, &h);
|
||||||
fprintf(stdout, "\tmin. size hints: h(%d), v(%d)\n", w, h);
|
fprintf(stdout, "\tmin. size hints: h(%d), v(%d)\n", w, h);
|
||||||
|
|
||||||
evas_object_size_hint_max_get(rect, &w, &h);
|
evas_object_size_hint_max_get(rect, &w, &h);
|
||||||
|
|
|
@ -132,7 +132,7 @@ _ecore_evas_obj_callback_changed_size_hints(void *data, Evas *e EINA_UNUSED, Eva
|
||||||
Ecore_Evas *ee = data;
|
Ecore_Evas *ee = data;
|
||||||
Evas_Coord w, h;
|
Evas_Coord w, h;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(obj, &w, &h);
|
efl_gfx_size_hint_combined_min_get(obj, &w, &h);
|
||||||
ecore_evas_size_min_set(ee, w, h);
|
ecore_evas_size_min_set(ee, w, h);
|
||||||
|
|
||||||
evas_object_size_hint_max_get(obj, &w, &h);
|
evas_object_size_hint_max_get(obj, &w, &h);
|
||||||
|
|
|
@ -212,7 +212,7 @@ _edje_box_recalc_apply(Edje *ed EINA_UNUSED, Edje_Real_Part *ep, Edje_Calc_Param
|
||||||
evas_object_smart_calculate(ep->object);
|
evas_object_smart_calculate(ep->object);
|
||||||
}
|
}
|
||||||
#if 0 /* Why the hell do we affect part size after resize ??? */
|
#if 0 /* Why the hell do we affect part size after resize ??? */
|
||||||
evas_object_size_hint_min_get(ep->object, &min_w, &min_h);
|
efl_gfx_size_hint_combined_min_get(ep->object, &min_w, &min_h);
|
||||||
if (chosen_desc->box.min.h && (p3->w < min_w))
|
if (chosen_desc->box.min.h && (p3->w < min_w))
|
||||||
p3->w = min_w;
|
p3->w = min_w;
|
||||||
if (chosen_desc->box.min.v && (p3->h < min_h))
|
if (chosen_desc->box.min.v && (p3->h < min_h))
|
||||||
|
|
|
@ -1424,7 +1424,7 @@ _edje_lua_object_get_size_hint_min(lua_State *L)
|
||||||
{
|
{
|
||||||
Edje_Lua_Evas_Object *obj = _edje_lua_checkudata(L, 1, &mObject);
|
Edje_Lua_Evas_Object *obj = _edje_lua_checkudata(L, 1, &mObject);
|
||||||
int w, h;
|
int w, h;
|
||||||
evas_object_size_hint_min_get(obj->eo, &w, &h);
|
efl_gfx_size_hint_combined_min_get(obj->eo, &w, &h);
|
||||||
lua_createtable(L, 2, 0);
|
lua_createtable(L, 2, 0);
|
||||||
lua_pushnumber(L, w);
|
lua_pushnumber(L, w);
|
||||||
lua_rawseti(L, -2, 1);
|
lua_rawseti(L, -2, 1);
|
||||||
|
|
|
@ -6351,7 +6351,7 @@ _edje_real_part_swallow_hints_update(Edje_Real_Part *rp)
|
||||||
Evas_Coord w1 = 0, h1 = 0, w2 = 0, h2 = 0, aw = 0, ah = 0;
|
Evas_Coord w1 = 0, h1 = 0, w2 = 0, h2 = 0, aw = 0, ah = 0;
|
||||||
Evas_Aspect_Control am = EVAS_ASPECT_CONTROL_NONE;
|
Evas_Aspect_Control am = EVAS_ASPECT_CONTROL_NONE;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(rp->typedata.swallow->swallowed_object, &w1, &h1);
|
efl_gfx_size_hint_combined_min_get(rp->typedata.swallow->swallowed_object, &w1, &h1);
|
||||||
evas_object_size_hint_max_get(rp->typedata.swallow->swallowed_object, &w2, &h2);
|
evas_object_size_hint_max_get(rp->typedata.swallow->swallowed_object, &w2, &h2);
|
||||||
evas_object_size_hint_aspect_get(rp->typedata.swallow->swallowed_object, &am, &aw, &ah);
|
evas_object_size_hint_aspect_get(rp->typedata.swallow->swallowed_object, &am, &aw, &ah);
|
||||||
rp->typedata.swallow->swallow_params.min.w = w1;
|
rp->typedata.swallow->swallow_params.min.w = w1;
|
||||||
|
|
|
@ -116,7 +116,7 @@ _sizing_eval(Evas_Object *obj, Efl_Ui_Box_Data *sd)
|
||||||
if (sd->delete_me)
|
if (sd->delete_me)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(wd->resize_obj, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(wd->resize_obj, &minw, &minh);
|
||||||
evas_object_size_hint_max_get(wd->resize_obj, &maxw, &maxh);
|
evas_object_size_hint_max_get(wd->resize_obj, &maxw, &maxh);
|
||||||
evas_object_size_hint_min_set(obj, minw, minh);
|
evas_object_size_hint_min_set(obj, minw, minh);
|
||||||
evas_object_size_hint_max_set(obj, maxw, maxh);
|
evas_object_size_hint_max_set(obj, maxw, maxh);
|
||||||
|
|
|
@ -74,9 +74,9 @@ _sizing_eval(Evas_Object *obj)
|
||||||
EFL_UI_FLIP_DATA_GET(obj, sd);
|
EFL_UI_FLIP_DATA_GET(obj, sd);
|
||||||
|
|
||||||
if (sd->front.content)
|
if (sd->front.content)
|
||||||
evas_object_size_hint_min_get(sd->front.content, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(sd->front.content, &minw, &minh);
|
||||||
if (sd->back.content)
|
if (sd->back.content)
|
||||||
evas_object_size_hint_min_get(sd->back.content, &minw2, &minh2);
|
efl_gfx_size_hint_combined_min_get(sd->back.content, &minw2, &minh2);
|
||||||
if (sd->front.content)
|
if (sd->front.content)
|
||||||
evas_object_size_hint_max_get(sd->front.content, &maxw, &maxh);
|
evas_object_size_hint_max_get(sd->front.content, &maxw, &maxh);
|
||||||
if (sd->back.content)
|
if (sd->back.content)
|
||||||
|
|
|
@ -193,7 +193,7 @@ _sizing_eval(Evas_Object *obj, Efl_Ui_Grid_Data *pd EINA_UNUSED)
|
||||||
|
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||||
|
|
||||||
evas_object_size_hint_min_get
|
efl_gfx_size_hint_combined_min_get
|
||||||
(wd->resize_obj, &minw, &minh);
|
(wd->resize_obj, &minw, &minh);
|
||||||
evas_object_size_hint_max_get
|
evas_object_size_hint_max_get
|
||||||
(wd->resize_obj, &maxw, &maxh);
|
(wd->resize_obj, &maxw, &maxh);
|
||||||
|
|
|
@ -799,7 +799,7 @@ _efl_ui_image_sizing_eval(Eo *obj)
|
||||||
efl_gfx_view_size_get(obj, &w, &h);
|
efl_gfx_view_size_get(obj, &w, &h);
|
||||||
|
|
||||||
sd->scale = ts;
|
sd->scale = ts;
|
||||||
evas_object_size_hint_min_get(obj, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(obj, &minw, &minh);
|
||||||
|
|
||||||
if (sd->no_scale)
|
if (sd->no_scale)
|
||||||
{
|
{
|
||||||
|
@ -1077,7 +1077,7 @@ _efl_ui_image_edje_object_size_min_get(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *s
|
||||||
if (sd->edje)
|
if (sd->edje)
|
||||||
edje_object_size_min_get(sd->img, w, h);
|
edje_object_size_min_get(sd->img, w, h);
|
||||||
else
|
else
|
||||||
evas_object_size_hint_min_get(sd->img, w, h);
|
efl_gfx_size_hint_combined_min_get(sd->img, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
|
@ -1102,7 +1102,7 @@ _efl_ui_image_edje_object_size_min_calc(Eo *obj EINA_UNUSED, Efl_Ui_Image_Data *
|
||||||
if (sd->edje)
|
if (sd->edje)
|
||||||
edje_object_size_min_calc(sd->img, w, h);
|
edje_object_size_min_calc(sd->img, w, h);
|
||||||
else
|
else
|
||||||
evas_object_size_hint_min_get(sd->img, w, h);
|
efl_gfx_size_hint_combined_min_get(sd->img, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
|
|
|
@ -799,7 +799,7 @@ _elm_win_obj_callback_changed_size_hints(void *data, Evas *e EINA_UNUSED, Evas_O
|
||||||
ELM_WIN_DATA_GET(data, sd);
|
ELM_WIN_DATA_GET(data, sd);
|
||||||
Evas_Coord w, h;
|
Evas_Coord w, h;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(obj, &w, &h);
|
efl_gfx_size_hint_combined_min_get(obj, &w, &h);
|
||||||
TRAP(sd, size_min_set, w, h);
|
TRAP(sd, size_min_set, w, h);
|
||||||
|
|
||||||
evas_object_size_hint_max_get(obj, &w, &h);
|
evas_object_size_hint_max_get(obj, &w, &h);
|
||||||
|
@ -2618,7 +2618,7 @@ _elm_win_resize_objects_eval(Evas_Object *obj)
|
||||||
Evas_Coord w, h, minw, minh, maxw, maxh;
|
Evas_Coord w, h, minw, minh, maxw, maxh;
|
||||||
double wx, wy;
|
double wx, wy;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(sd->edje, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(sd->edje, &minw, &minh);
|
||||||
if (minw < 1) minw = 1;
|
if (minw < 1) minw = 1;
|
||||||
if (minh < 1) minh = 1;
|
if (minh < 1) minh = 1;
|
||||||
|
|
||||||
|
@ -3506,7 +3506,7 @@ _window_layout_stack(Evas_Object *o, Evas_Object_Box_Data *p, void *data)
|
||||||
if (wx == 0.0) weight_x = 0;
|
if (wx == 0.0) weight_x = 0;
|
||||||
if (wy == 0.0) weight_y = 0;
|
if (wy == 0.0) weight_y = 0;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(child, &w, &h);
|
efl_gfx_size_hint_combined_min_get(child, &w, &h);
|
||||||
if (w > minw) minw = w;
|
if (w > minw) minw = w;
|
||||||
if (h > minh) minh = h;
|
if (h > minh) minh = h;
|
||||||
}
|
}
|
||||||
|
|
|
@ -247,7 +247,7 @@ _base_geometry_calc(Evas_Object *obj,
|
||||||
if ((max_size.x > 0) && (base_size.x > max_size.x))
|
if ((max_size.x > 0) && (base_size.x > max_size.x))
|
||||||
base_size.x = max_size.x;
|
base_size.x = max_size.x;
|
||||||
//Limit to Min Size
|
//Limit to Min Size
|
||||||
evas_object_size_hint_min_get(obj, &min_size.x, &min_size.y);
|
efl_gfx_size_hint_combined_min_get(obj, &min_size.x, &min_size.y);
|
||||||
|
|
||||||
if ((min_size.y > 0) && (base_size.y < min_size.y))
|
if ((min_size.y > 0) && (base_size.y < min_size.y))
|
||||||
base_size.y = min_size.y;
|
base_size.y = min_size.y;
|
||||||
|
|
|
@ -241,7 +241,7 @@ _resizing_eval(Evas_Object *obj, Elm_Hoversel_Data *sd)
|
||||||
if ((!sd->expanded) || (!sd->bx)) return;
|
if ((!sd->expanded) || (!sd->bx)) return;
|
||||||
|
|
||||||
elm_box_recalculate(sd->bx);
|
elm_box_recalculate(sd->bx);
|
||||||
evas_object_size_hint_min_get(sd->bx, &box_w, &box_h);
|
efl_gfx_size_hint_combined_min_get(sd->bx, &box_w, &box_h);
|
||||||
|
|
||||||
max_size_str = elm_layout_data_get(sd->hover, "max_size");
|
max_size_str = elm_layout_data_get(sd->hover, "max_size");
|
||||||
if (max_size_str)
|
if (max_size_str)
|
||||||
|
|
|
@ -207,7 +207,7 @@ _shrink_mode_set(Evas_Object *obj,
|
||||||
if (sd->label && sd->label_packed)
|
if (sd->label && sd->label_packed)
|
||||||
{
|
{
|
||||||
elm_box_pack_end(sd->box, sd->label);
|
elm_box_pack_end(sd->box, sd->label);
|
||||||
evas_object_size_hint_min_get(sd->label, &w_tmp, NULL);
|
efl_gfx_size_hint_combined_min_get(sd->label, &w_tmp, NULL);
|
||||||
w -= w_tmp;
|
w -= w_tmp;
|
||||||
w -= box_inner_item_width_padding;
|
w -= box_inner_item_width_padding;
|
||||||
}
|
}
|
||||||
|
@ -225,7 +225,7 @@ _shrink_mode_set(Evas_Object *obj,
|
||||||
evas_object_show(VIEW(item));
|
evas_object_show(VIEW(item));
|
||||||
item->visible = EINA_TRUE;
|
item->visible = EINA_TRUE;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(VIEW(item), &item_w, NULL);
|
efl_gfx_size_hint_combined_min_get(VIEW(item), &item_w, NULL);
|
||||||
|
|
||||||
w -= item_w;
|
w -= item_w;
|
||||||
w -= box_inner_item_width_padding;
|
w -= box_inner_item_width_padding;
|
||||||
|
@ -319,7 +319,7 @@ _view_update(Elm_Multibuttonentry_Data *sd)
|
||||||
|
|
||||||
// update label
|
// update label
|
||||||
if (sd->label)
|
if (sd->label)
|
||||||
evas_object_size_hint_min_get(sd->label, &width, &height);
|
efl_gfx_size_hint_combined_min_get(sd->label, &width, &height);
|
||||||
|
|
||||||
if (sd->guide_text)
|
if (sd->guide_text)
|
||||||
{
|
{
|
||||||
|
@ -783,7 +783,7 @@ _item_new(Elm_Multibuttonentry_Data *sd,
|
||||||
evas_object_show(VIEW(item));
|
evas_object_show(VIEW(item));
|
||||||
|
|
||||||
evas_object_smart_calculate(VIEW(item));
|
evas_object_smart_calculate(VIEW(item));
|
||||||
evas_object_size_hint_min_get(VIEW(item), &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(VIEW(item), &minw, &minh);
|
||||||
evas_object_geometry_get(sd->box, NULL, NULL, &boxw, NULL);
|
evas_object_geometry_get(sd->box, NULL, NULL, &boxw, NULL);
|
||||||
|
|
||||||
if (sd->w_box && minw > boxw)
|
if (sd->w_box && minw > boxw)
|
||||||
|
@ -1004,7 +1004,7 @@ _box_resize_cb(void *data,
|
||||||
elm_layout_sizing_eval(VIEW(it));
|
elm_layout_sizing_eval(VIEW(it));
|
||||||
evas_object_smart_calculate(VIEW(it));
|
evas_object_smart_calculate(VIEW(it));
|
||||||
|
|
||||||
evas_object_size_hint_min_get(VIEW(it), &mnw, &mnh);
|
efl_gfx_size_hint_combined_min_get(VIEW(it), &mnw, &mnh);
|
||||||
|
|
||||||
if (mnw > w - hpad)
|
if (mnw > w - hpad)
|
||||||
{
|
{
|
||||||
|
@ -1284,14 +1284,14 @@ _box_min_size_calculate(Evas_Object *box,
|
||||||
Evas_Object_Box_Option *opt;
|
Evas_Object_Box_Option *opt;
|
||||||
|
|
||||||
evas_object_geometry_get(box, NULL, NULL, &w, NULL);
|
evas_object_geometry_get(box, NULL, NULL, &w, NULL);
|
||||||
evas_object_size_hint_min_get(box, &minw, NULL);
|
efl_gfx_size_hint_combined_min_get(box, &minw, NULL);
|
||||||
|
|
||||||
if (!w) return EINA_FALSE;
|
if (!w) return EINA_FALSE;
|
||||||
|
|
||||||
line_num = 1;
|
line_num = 1;
|
||||||
EINA_LIST_FOREACH(priv->children, l, opt)
|
EINA_LIST_FOREACH(priv->children, l, opt)
|
||||||
{
|
{
|
||||||
evas_object_size_hint_min_get(opt->obj, &mnw, &mnh);
|
efl_gfx_size_hint_combined_min_get(opt->obj, &mnw, &mnh);
|
||||||
|
|
||||||
linew += mnw;
|
linew += mnw;
|
||||||
if (lineh < mnh) lineh = mnh;
|
if (lineh < mnh) lineh = mnh;
|
||||||
|
@ -1330,7 +1330,7 @@ _box_layout_cb(Evas_Object *o,
|
||||||
|
|
||||||
evas_object_geometry_get(o, &x, &y, &w, &h);
|
evas_object_geometry_get(o, &x, &y, &w, &h);
|
||||||
|
|
||||||
evas_object_size_hint_min_get(o, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(o, &minw, &minh);
|
||||||
evas_object_size_hint_align_get(o, &ax, &ay);
|
evas_object_size_hint_align_get(o, &ax, &ay);
|
||||||
|
|
||||||
rtl = elm_widget_mirrored_get(data);
|
rtl = elm_widget_mirrored_get(data);
|
||||||
|
@ -1360,7 +1360,7 @@ _box_layout_cb(Evas_Object *o,
|
||||||
obj = opt->obj;
|
obj = opt->obj;
|
||||||
evas_object_size_hint_align_get(obj, &ax, &ay);
|
evas_object_size_hint_align_get(obj, &ax, &ay);
|
||||||
evas_object_size_hint_weight_get(obj, &wx, &wy);
|
evas_object_size_hint_weight_get(obj, &wx, &wy);
|
||||||
evas_object_size_hint_min_get(obj, &mnw, &mnh);
|
efl_gfx_size_hint_combined_min_get(obj, &mnw, &mnh);
|
||||||
|
|
||||||
fw = fh = EINA_FALSE;
|
fw = fh = EINA_FALSE;
|
||||||
if (ax == -1.0) {fw = 1; ax = 0.5; }
|
if (ax == -1.0) {fw = 1; ax = 0.5; }
|
||||||
|
|
|
@ -459,14 +459,14 @@ _elm_popup_elm_layout_sizing_eval(Eo *obj, Elm_Popup_Data *sd)
|
||||||
EINA_LIST_FOREACH(sd->items, elist, it)
|
EINA_LIST_FOREACH(sd->items, elist, it)
|
||||||
{
|
{
|
||||||
_item_sizing_eval(it);
|
_item_sizing_eval(it);
|
||||||
evas_object_size_hint_min_get(elm_layout_edje_get(VIEW(it)),
|
efl_gfx_size_hint_combined_min_get(elm_layout_edje_get(VIEW(it)),
|
||||||
NULL, &minh_box);
|
NULL, &minh_box);
|
||||||
if (minh_box != -1) h_box += minh_box;
|
if (minh_box != -1) h_box += minh_box;
|
||||||
}
|
}
|
||||||
evas_object_size_hint_min_set(sd->spacer, 0, MIN(h_box, sd->max_sc_h));
|
evas_object_size_hint_min_set(sd->spacer, 0, MIN(h_box, sd->max_sc_h));
|
||||||
evas_object_size_hint_max_set(sd->spacer, -1, sd->max_sc_h);
|
evas_object_size_hint_max_set(sd->spacer, -1, sd->max_sc_h);
|
||||||
|
|
||||||
evas_object_size_hint_min_get(sd->scr, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(sd->scr, &minw, &minh);
|
||||||
evas_object_size_hint_max_get(sd->scr, &minw, &minh);
|
evas_object_size_hint_max_get(sd->scr, &minw, &minh);
|
||||||
}
|
}
|
||||||
else if (sd->scroll && (sd->content || sd->text_content_obj))
|
else if (sd->scroll && (sd->content || sd->text_content_obj))
|
||||||
|
|
|
@ -135,7 +135,7 @@ _sizing_eval(Evas_Object *obj)
|
||||||
if (sd->delete_me)
|
if (sd->delete_me)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
evas_object_size_hint_min_get
|
efl_gfx_size_hint_combined_min_get
|
||||||
(wd->resize_obj, &minw, &minh);
|
(wd->resize_obj, &minw, &minh);
|
||||||
|
|
||||||
evas_object_size_hint_max_get
|
evas_object_size_hint_max_get
|
||||||
|
|
|
@ -1451,7 +1451,7 @@ _picker_sizing_eval(Evas_Object *obj)
|
||||||
|
|
||||||
ELM_COLORSELECTOR_DATA_GET(obj, sd);
|
ELM_COLORSELECTOR_DATA_GET(obj, sd);
|
||||||
|
|
||||||
evas_object_size_hint_min_get(sd->picker, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(sd->picker, &minw, &minh);
|
||||||
evas_object_size_hint_min_set(obj, minw, minh);
|
evas_object_size_hint_min_set(obj, minw, minh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1507,7 +1507,7 @@ _on_resize(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
|
||||||
{
|
{
|
||||||
Evas_Coord w = 0, h = 0, minw = -1;
|
Evas_Coord w = 0, h = 0, minw = -1;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(obj, &minw, NULL);
|
efl_gfx_size_hint_combined_min_get(obj, &minw, NULL);
|
||||||
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
|
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
|
||||||
if ((w != sd->_w) && (w < minw))
|
if ((w != sd->_w) && (w < minw))
|
||||||
elm_layout_sizing_eval(obj);
|
elm_layout_sizing_eval(obj);
|
||||||
|
|
|
@ -305,7 +305,7 @@ _resize_cb(void *data EINA_UNUSED,
|
||||||
if (sd->items)
|
if (sd->items)
|
||||||
{
|
{
|
||||||
Elm_Diskselector_Item_Data *it = sd->items->data;
|
Elm_Diskselector_Item_Data *it = sd->items->data;
|
||||||
evas_object_size_hint_min_get(VIEW(it), &mw, &mh);
|
efl_gfx_size_hint_combined_min_get(VIEW(it), &mw, &mh);
|
||||||
}
|
}
|
||||||
if (sd->minh < mh) sd->minh = mh;
|
if (sd->minh < mh) sd->minh = mh;
|
||||||
edje_object_size_min_restricted_calc
|
edje_object_size_min_restricted_calc
|
||||||
|
|
|
@ -1012,7 +1012,7 @@ _deferred_recalc_job(void *data)
|
||||||
{
|
{
|
||||||
Evas_Coord ominw = -1;
|
Evas_Coord ominw = -1;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(data, &ominw, NULL);
|
efl_gfx_size_hint_combined_min_get(data, &ominw, NULL);
|
||||||
minw = ominw;
|
minw = ominw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1118,7 +1118,7 @@ _elm_entry_elm_layout_sizing_eval(Eo *obj, Elm_Entry_Data *sd)
|
||||||
{
|
{
|
||||||
Evas_Coord ominw = -1;
|
Evas_Coord ominw = -1;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(sd->entry_edje, &ominw, NULL);
|
efl_gfx_size_hint_combined_min_get(sd->entry_edje, &ominw, NULL);
|
||||||
minw = ominw;
|
minw = ominw;
|
||||||
}
|
}
|
||||||
sd->ent_mw = minw;
|
sd->ent_mw = minw;
|
||||||
|
@ -1351,7 +1351,7 @@ _hoversel_position(Evas_Object *obj)
|
||||||
edje_object_part_text_cursor_geometry_get
|
edje_object_part_text_cursor_geometry_get
|
||||||
(sd->entry_edje, "elm.text", &cx, &cy, &cw, &ch);
|
(sd->entry_edje, "elm.text", &cx, &cy, &cw, &ch);
|
||||||
|
|
||||||
evas_object_size_hint_min_get(sd->hoversel, &mw, &mh);
|
efl_gfx_size_hint_combined_min_get(sd->hoversel, &mw, &mh);
|
||||||
if (cx + mw > w)
|
if (cx + mw > w)
|
||||||
cx = w - mw;
|
cx = w - mw;
|
||||||
if (cy + mh > h)
|
if (cy + mh > h)
|
||||||
|
@ -2099,7 +2099,7 @@ _entry_changed_handle(void *data,
|
||||||
/* Reset the size hints which are no more relevant. Keep the
|
/* Reset the size hints which are no more relevant. Keep the
|
||||||
* height, this is a hack, but doesn't really matter cause we'll
|
* height, this is a hack, but doesn't really matter cause we'll
|
||||||
* re-eval in a moment. */
|
* re-eval in a moment. */
|
||||||
evas_object_size_hint_min_get(data, NULL, &minh);
|
efl_gfx_size_hint_combined_min_get(data, NULL, &minh);
|
||||||
evas_object_size_hint_min_set(data, -1, minh);
|
evas_object_size_hint_min_set(data, -1, minh);
|
||||||
|
|
||||||
elm_layout_sizing_eval(data);
|
elm_layout_sizing_eval(data);
|
||||||
|
|
|
@ -87,7 +87,7 @@ _sizing_eval(Evas_Object *obj)
|
||||||
|
|
||||||
if (!wd) return;
|
if (!wd) return;
|
||||||
if (!wd->content) return;
|
if (!wd->content) return;
|
||||||
evas_object_size_hint_min_get(wd->content, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(wd->content, &minw, &minh);
|
||||||
evas_object_size_hint_max_get(wd->content, &maxw, &maxh);
|
evas_object_size_hint_max_get(wd->content, &maxw, &maxh);
|
||||||
if (wd->maxmin)
|
if (wd->maxmin)
|
||||||
{
|
{
|
||||||
|
|
|
@ -85,7 +85,7 @@ _elm_flipselector_elm_layout_sizing_eval(Eo *obj, Elm_Flipselector_Data *sd)
|
||||||
edje_object_size_min_restricted_calc
|
edje_object_size_min_restricted_calc
|
||||||
(wd->resize_obj, &minw, &minh, minw, minh);
|
(wd->resize_obj, &minw, &minh, minw, minh);
|
||||||
elm_coords_finger_size_adjust(1, &minw, 2, &minh);
|
elm_coords_finger_size_adjust(1, &minw, 2, &minh);
|
||||||
evas_object_size_hint_min_get(obj, &w, &h);
|
efl_gfx_size_hint_combined_min_get(obj, &w, &h);
|
||||||
|
|
||||||
if (sd->sentinel)
|
if (sd->sentinel)
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,7 +45,7 @@ _sizing_eval(Evas_Object *obj,
|
||||||
Evas_Coord cminw = -1, cminh = -1;
|
Evas_Coord cminw = -1, cminh = -1;
|
||||||
|
|
||||||
edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
|
edje_object_size_min_calc(wd->resize_obj, &minw, &minh);
|
||||||
evas_object_size_hint_min_get(obj, &cminw, &cminh);
|
efl_gfx_size_hint_combined_min_get(obj, &cminw, &cminh);
|
||||||
if ((minw == cminw) && (minh == cminh)) return;
|
if ((minw == cminw) && (minh == cminh)) return;
|
||||||
|
|
||||||
evas_object_size_hint_min_set(obj, minw, minh);
|
evas_object_size_hint_min_set(obj, minw, minh);
|
||||||
|
|
|
@ -402,7 +402,7 @@ _item_content_realize(Elm_Gen_Item *it,
|
||||||
if (eo_class_get(content) == ELM_LAYOUT_CLASS)
|
if (eo_class_get(content) == ELM_LAYOUT_CLASS)
|
||||||
{
|
{
|
||||||
Evas_Coord old_w, old_h, minw = 0, minh = 0;
|
Evas_Coord old_w, old_h, minw = 0, minh = 0;
|
||||||
evas_object_size_hint_min_get(content, &old_w, &old_h);
|
efl_gfx_size_hint_combined_min_get(content, &old_w, &old_h);
|
||||||
edje_object_size_min_calc(elm_layout_edje_get(content), &minw, &minh);
|
edje_object_size_min_calc(elm_layout_edje_get(content), &minw, &minh);
|
||||||
|
|
||||||
if (old_w > minw) minw = old_w;
|
if (old_w > minw) minw = old_w;
|
||||||
|
@ -868,7 +868,7 @@ _elm_genlist_elm_layout_sizing_eval(Eo *obj, Elm_Genlist_Data *sd)
|
||||||
|
|
||||||
if (sd->on_sub_del) return;;
|
if (sd->on_sub_del) return;;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(obj, &minw, NULL);
|
efl_gfx_size_hint_combined_min_get(obj, &minw, NULL);
|
||||||
evas_object_size_hint_max_get(obj, &maxw, &maxh);
|
evas_object_size_hint_max_get(obj, &maxw, &maxh);
|
||||||
|
|
||||||
edje_object_size_min_calc(wd->resize_obj, &vmw, &vmh);
|
edje_object_size_min_calc(wd->resize_obj, &vmw, &vmh);
|
||||||
|
|
|
@ -168,7 +168,7 @@ _elm_hover_smart_content_location_get(Elm_Hover_Data *sd,
|
||||||
Evas_Coord c_w = 0, c_h = 0, mid_w, mid_h;
|
Evas_Coord c_w = 0, c_h = 0, mid_w, mid_h;
|
||||||
int max;
|
int max;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(sd->smt_sub->obj, &c_w, &c_h);
|
efl_gfx_size_hint_combined_min_get(sd->smt_sub->obj, &c_w, &c_h);
|
||||||
mid_w = c_w / 2;
|
mid_w = c_w / 2;
|
||||||
mid_h = c_h / 2;
|
mid_h = c_h / 2;
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ _recalc(void *data)
|
||||||
{
|
{
|
||||||
Evas_Coord ominw = -1;
|
Evas_Coord ominw = -1;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(data, &ominw, NULL);
|
efl_gfx_size_hint_combined_min_get(data, &ominw, NULL);
|
||||||
minw = ominw;
|
minw = ominw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -687,7 +687,7 @@ _elm_list_elm_layout_sizing_eval(Eo *obj, Elm_List_Data *sd)
|
||||||
|
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||||
|
|
||||||
evas_object_size_hint_min_get(sd->box, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(sd->box, &minw, &minh);
|
||||||
evas_object_size_hint_max_get(sd->box, &maxw, &maxh);
|
evas_object_size_hint_max_get(sd->box, &maxw, &maxh);
|
||||||
evas_object_size_hint_weight_get(sd->box, &xw, &yw);
|
evas_object_size_hint_weight_get(sd->box, &xw, &yw);
|
||||||
|
|
||||||
|
@ -844,13 +844,13 @@ _items_fix(Evas_Object *obj)
|
||||||
if (it->deleted) continue;
|
if (it->deleted) continue;
|
||||||
if (it->icon)
|
if (it->icon)
|
||||||
{
|
{
|
||||||
evas_object_size_hint_min_get(it->icon, &mw, &mh);
|
efl_gfx_size_hint_combined_min_get(it->icon, &mw, &mh);
|
||||||
if (mw > minw[0]) minw[0] = mw;
|
if (mw > minw[0]) minw[0] = mw;
|
||||||
if (mh > minh[0]) minh[0] = mh;
|
if (mh > minh[0]) minh[0] = mh;
|
||||||
}
|
}
|
||||||
if (it->end)
|
if (it->end)
|
||||||
{
|
{
|
||||||
evas_object_size_hint_min_get(it->end, &mw, &mh);
|
efl_gfx_size_hint_combined_min_get(it->end, &mw, &mh);
|
||||||
if (mw > minw[1]) minw[1] = mw;
|
if (mw > minw[1]) minw[1] = mw;
|
||||||
if (mh > minh[1]) minh[1] = mh;
|
if (mh > minh[1]) minh[1] = mh;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1474,7 +1474,7 @@ _icon_dup(Evas_Object *icon,
|
||||||
evas_object_geometry_get(icon, NULL, NULL, &w, &h);
|
evas_object_geometry_get(icon, NULL, NULL, &w, &h);
|
||||||
if (w <= 0 || h <= 0)
|
if (w <= 0 || h <= 0)
|
||||||
{
|
{
|
||||||
evas_object_size_hint_min_get(icon, &w, &h);
|
efl_gfx_size_hint_combined_min_get(icon, &w, &h);
|
||||||
evas_object_size_hint_min_set(dupp, w, h);
|
evas_object_size_hint_min_set(dupp, w, h);
|
||||||
}
|
}
|
||||||
else evas_object_resize(dupp, w, h);
|
else evas_object_resize(dupp, w, h);
|
||||||
|
@ -1525,7 +1525,7 @@ _overlay_default_show(Overlay_Default *ovl)
|
||||||
{
|
{
|
||||||
disp = ovl->content;
|
disp = ovl->content;
|
||||||
evas_object_geometry_get(disp, NULL, NULL, &w, &h);
|
evas_object_geometry_get(disp, NULL, NULL, &w, &h);
|
||||||
if (w <= 0 || h <= 0) evas_object_size_hint_min_get(disp, &w, &h);
|
if (w <= 0 || h <= 0) efl_gfx_size_hint_combined_min_get(disp, &w, &h);
|
||||||
ovl->w = w;
|
ovl->w = w;
|
||||||
ovl->h = h;
|
ovl->h = h;
|
||||||
}
|
}
|
||||||
|
@ -1534,7 +1534,7 @@ _overlay_default_show(Overlay_Default *ovl)
|
||||||
disp = ovl->clas_content;
|
disp = ovl->clas_content;
|
||||||
|
|
||||||
evas_object_geometry_get(disp, NULL, NULL, &w, &h);
|
evas_object_geometry_get(disp, NULL, NULL, &w, &h);
|
||||||
if (w <= 0 || h <= 0) evas_object_size_hint_min_get(disp, &w, &h);
|
if (w <= 0 || h <= 0) efl_gfx_size_hint_combined_min_get(disp, &w, &h);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,7 @@ _sizing_eval(Evas_Object *obj)
|
||||||
ELM_MAPBUF_DATA_GET(obj, sd);
|
ELM_MAPBUF_DATA_GET(obj, sd);
|
||||||
if (sd->content)
|
if (sd->content)
|
||||||
{
|
{
|
||||||
evas_object_size_hint_min_get(sd->content, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(sd->content, &minw, &minh);
|
||||||
evas_object_size_hint_max_get(sd->content, &maxw, &maxh);
|
evas_object_size_hint_max_get(sd->content, &maxw, &maxh);
|
||||||
}
|
}
|
||||||
evas_object_size_hint_min_set(obj, minw, minh);
|
evas_object_size_hint_min_set(obj, minw, minh);
|
||||||
|
|
|
@ -319,7 +319,7 @@ _elm_scroller_elm_layout_sizing_eval(Eo *obj, Elm_Scroller_Data *sd)
|
||||||
|
|
||||||
if (sd->content)
|
if (sd->content)
|
||||||
{
|
{
|
||||||
evas_object_size_hint_min_get(sd->content, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(sd->content, &minw, &minh);
|
||||||
evas_object_size_hint_max_get(sd->content, &maxw, &maxh);
|
evas_object_size_hint_max_get(sd->content, &maxw, &maxh);
|
||||||
evas_object_size_hint_weight_get(sd->content, &xw, &yw);
|
evas_object_size_hint_weight_get(sd->content, &xw, &yw);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ _elm_segment_control_elm_layout_sizing_eval(Eo *obj, Elm_Segment_Control_Data *s
|
||||||
edje_object_size_min_restricted_calc
|
edje_object_size_min_restricted_calc
|
||||||
(wd->resize_obj, &minw, &minh, minw, minh);
|
(wd->resize_obj, &minw, &minh, minw, minh);
|
||||||
|
|
||||||
evas_object_size_hint_min_get(obj, &w, &h);
|
efl_gfx_size_hint_combined_min_get(obj, &w, &h);
|
||||||
|
|
||||||
if (w > minw) minw = w;
|
if (w > minw) minw = w;
|
||||||
if (h > minh) minh = h;
|
if (h > minh) minh = h;
|
||||||
|
|
|
@ -126,7 +126,7 @@ _sizing_eval(Evas_Object *obj)
|
||||||
|
|
||||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||||
|
|
||||||
evas_object_size_hint_min_get
|
efl_gfx_size_hint_combined_min_get
|
||||||
(wd->resize_obj, &minw, &minh);
|
(wd->resize_obj, &minw, &minh);
|
||||||
evas_object_size_hint_max_get
|
evas_object_size_hint_max_get
|
||||||
(wd->resize_obj, &maxw, &maxh);
|
(wd->resize_obj, &maxw, &maxh);
|
||||||
|
|
|
@ -369,7 +369,7 @@ _resize_job(void *data)
|
||||||
sd->resize_job = NULL;
|
sd->resize_job = NULL;
|
||||||
elm_interface_scrollable_content_viewport_geometry_get
|
elm_interface_scrollable_content_viewport_geometry_get
|
||||||
(obj, NULL, NULL, &vw, &vh);
|
(obj, NULL, NULL, &vw, &vh);
|
||||||
evas_object_size_hint_min_get(sd->bx, &mw, &mh);
|
efl_gfx_size_hint_combined_min_get(sd->bx, &mw, &mh);
|
||||||
w = sd->minw_bx;
|
w = sd->minw_bx;
|
||||||
h = sd->minh_bx;
|
h = sd->minh_bx;
|
||||||
|
|
||||||
|
@ -1490,7 +1490,7 @@ _sizing_eval(Evas_Object *obj)
|
||||||
|
|
||||||
evas_object_resize(wd->resize_obj, w, h);
|
evas_object_resize(wd->resize_obj, w, h);
|
||||||
|
|
||||||
evas_object_size_hint_min_get(sd->bx, &minw_bx, &minh_bx);
|
efl_gfx_size_hint_combined_min_get(sd->bx, &minw_bx, &minh_bx);
|
||||||
elm_interface_scrollable_content_viewport_geometry_get
|
elm_interface_scrollable_content_viewport_geometry_get
|
||||||
(obj, NULL, NULL, &vw, &vh);
|
(obj, NULL, NULL, &vw, &vh);
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ _smart_extents_non_homogeneous_calc(Evas_Object_Box_Data *priv, int w, int h, in
|
||||||
rrw = &oh, rrh = &ow;
|
rrw = &oh, rrh = &ow;
|
||||||
|
|
||||||
evas_object_size_hint_padding_get(opt->obj, &pad_l, &pad_r, &pad_t, &pad_b);
|
evas_object_size_hint_padding_get(opt->obj, &pad_l, &pad_r, &pad_t, &pad_b);
|
||||||
evas_object_size_hint_min_get(opt->obj, &mnw, &mnh);
|
efl_gfx_size_hint_combined_min_get(opt->obj, &mnw, &mnh);
|
||||||
mnw += pad_l + pad_r;
|
mnw += pad_l + pad_r;
|
||||||
mnh += pad_t + pad_b;
|
mnh += pad_t + pad_b;
|
||||||
if (*rminw < *rw) *rminw = *rw;
|
if (*rminw < *rw) *rminw = *rw;
|
||||||
|
@ -253,7 +253,7 @@ _smart_extents_calculate(Evas_Object *box, Evas_Object_Box_Data *priv, int w, in
|
||||||
if (ay < 0) fh = 1;
|
if (ay < 0) fh = 1;
|
||||||
|
|
||||||
evas_object_size_hint_padding_get(opt->obj, &pad_l, &pad_r, &pad_t, &pad_b);
|
evas_object_size_hint_padding_get(opt->obj, &pad_l, &pad_r, &pad_t, &pad_b);
|
||||||
evas_object_size_hint_min_get(opt->obj, &mnw, &mnh);
|
efl_gfx_size_hint_combined_min_get(opt->obj, &mnw, &mnh);
|
||||||
mnw += pad_l + pad_r;
|
mnw += pad_l + pad_r;
|
||||||
mnh += pad_t + pad_b;
|
mnh += pad_t + pad_b;
|
||||||
if (minh < mnh) minh = mnh;
|
if (minh < mnh) minh = mnh;
|
||||||
|
@ -370,7 +370,7 @@ _els_box_layout(Evas_Object *o, Evas_Object_Box_Data *priv, Eina_Bool horizontal
|
||||||
_smart_extents_calculate(o, priv, w, h, expand, horizontal, homogeneous);
|
_smart_extents_calculate(o, priv, w, h, expand, horizontal, homogeneous);
|
||||||
evas_object_geometry_get(o, &x, &y, &w, &h);
|
evas_object_geometry_get(o, &x, &y, &w, &h);
|
||||||
|
|
||||||
evas_object_size_hint_min_get(o, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(o, &minw, &minh);
|
||||||
evas_object_box_align_get(o, &ax, &ay);
|
evas_object_box_align_get(o, &ax, &ay);
|
||||||
/* if object size is less than min, apply align to trigger viewporting */
|
/* if object size is less than min, apply align to trigger viewporting */
|
||||||
if (w < minw)
|
if (w < minw)
|
||||||
|
@ -413,7 +413,7 @@ _els_box_layout(Evas_Object *o, Evas_Object_Box_Data *priv, Eina_Bool horizontal
|
||||||
evas_object_size_hint_align_get(obj, &ax, &ay);
|
evas_object_size_hint_align_get(obj, &ax, &ay);
|
||||||
evas_object_size_hint_weight_get(obj, &wx, &wy);
|
evas_object_size_hint_weight_get(obj, &wx, &wy);
|
||||||
evas_object_size_hint_padding_get(obj, &pad_l, &pad_r, &pad_t, &pad_b);
|
evas_object_size_hint_padding_get(obj, &pad_l, &pad_r, &pad_t, &pad_b);
|
||||||
evas_object_size_hint_min_get(obj, &mnw, &mnh);
|
efl_gfx_size_hint_combined_min_get(obj, &mnw, &mnh);
|
||||||
mnw += pad_l + pad_r;
|
mnw += pad_l + pad_r;
|
||||||
mnh += pad_t + pad_b;
|
mnh += pad_t + pad_b;
|
||||||
evas_object_size_hint_max_get(obj, &mxw, &mxh);
|
evas_object_size_hint_max_get(obj, &mxw, &mxh);
|
||||||
|
|
|
@ -465,7 +465,7 @@ _elm_tooltip_reconfigure(Elm_Tooltip *tt)
|
||||||
evas_object_layer_set(tt->tooltip, ELM_OBJECT_LAYER_TOOLTIP);
|
evas_object_layer_set(tt->tooltip, ELM_OBJECT_LAYER_TOOLTIP);
|
||||||
}
|
}
|
||||||
TTDBG("*******RECALC\n");
|
TTDBG("*******RECALC\n");
|
||||||
evas_object_size_hint_min_get(tt->content, &ominw, &ominh);
|
efl_gfx_size_hint_combined_min_get(tt->content, &ominw, &ominh);
|
||||||
edje_object_size_min_get(tt->tooltip, &eminw, &eminh);
|
edje_object_size_min_get(tt->tooltip, &eminw, &eminh);
|
||||||
|
|
||||||
if (eminw && (ominw < eminw)) ominw = eminw;
|
if (eminw && (ominw < eminw)) ominw = eminw;
|
||||||
|
|
|
@ -588,7 +588,7 @@ _sizing_eval(Evas_Object *obj)
|
||||||
Evas_Coord minw, minh, maxw, maxh;
|
Evas_Coord minw, minh, maxw, maxh;
|
||||||
Evas_Coord w, h;
|
Evas_Coord w, h;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(obj, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(obj, &minw, &minh);
|
||||||
evas_object_size_hint_max_get(obj, &maxw, &maxh);
|
evas_object_size_hint_max_get(obj, &maxw, &maxh);
|
||||||
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
|
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
|
||||||
|
|
||||||
|
@ -618,7 +618,7 @@ _evas_object_box_layout_horizontal_weight_apply(Evas_Object_Box_Data *priv, Evas
|
||||||
{
|
{
|
||||||
int min_w;
|
int min_w;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(o, &min_w, NULL);
|
efl_gfx_size_hint_combined_min_get(o, &min_w, NULL);
|
||||||
evas_object_resize(o, min_w, h);
|
evas_object_resize(o, min_w, h);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -782,7 +782,7 @@ _evas_object_box_layout_vertical_weight_apply(Evas_Object_Box_Data *priv, Evas_O
|
||||||
{
|
{
|
||||||
int min_h;
|
int min_h;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(o, NULL, &min_h);
|
efl_gfx_size_hint_combined_min_get(o, NULL, &min_h);
|
||||||
evas_object_resize(o, w, min_h);
|
evas_object_resize(o, w, min_h);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -962,7 +962,7 @@ _evas_box_layout_homogeneous_horizontal(Eo *o, Evas_Object_Box_Data *priv, Evas_
|
||||||
evas_object_size_hint_padding_get
|
evas_object_size_hint_padding_get
|
||||||
(opt->obj, &padding_l, &padding_r, &padding_t, &padding_b);
|
(opt->obj, &padding_l, &padding_r, &padding_t, &padding_b);
|
||||||
evas_object_size_hint_max_get(opt->obj, &max_w, &max_h);
|
evas_object_size_hint_max_get(opt->obj, &max_w, &max_h);
|
||||||
evas_object_size_hint_min_get(opt->obj, &min_w, NULL);
|
efl_gfx_size_hint_combined_min_get(opt->obj, &min_w, NULL);
|
||||||
|
|
||||||
_sizing_eval(opt->obj);
|
_sizing_eval(opt->obj);
|
||||||
evas_object_geometry_get(opt->obj, NULL, NULL, &child_w, &child_h);
|
evas_object_geometry_get(opt->obj, NULL, NULL, &child_w, &child_h);
|
||||||
|
@ -1026,7 +1026,7 @@ _evas_box_layout_homogeneous_vertical(Eo *o, Evas_Object_Box_Data *priv, Evas_Ob
|
||||||
evas_object_size_hint_padding_get
|
evas_object_size_hint_padding_get
|
||||||
(opt->obj, &padding_l, &padding_r, &padding_t, &padding_b);
|
(opt->obj, &padding_l, &padding_r, &padding_t, &padding_b);
|
||||||
evas_object_size_hint_max_get(opt->obj, &max_w, &max_h);
|
evas_object_size_hint_max_get(opt->obj, &max_w, &max_h);
|
||||||
evas_object_size_hint_min_get(opt->obj, NULL, &min_h);
|
efl_gfx_size_hint_combined_min_get(opt->obj, NULL, &min_h);
|
||||||
|
|
||||||
_sizing_eval(opt->obj);
|
_sizing_eval(opt->obj);
|
||||||
evas_object_geometry_get(opt->obj, NULL, NULL, &child_w, &child_h);
|
evas_object_geometry_get(opt->obj, NULL, NULL, &child_w, &child_h);
|
||||||
|
@ -1112,7 +1112,7 @@ _evas_box_layout_homogeneous_max_size_horizontal(Eo *o, Evas_Object_Box_Data *pr
|
||||||
evas_object_size_hint_padding_get
|
evas_object_size_hint_padding_get
|
||||||
(opt->obj, &padding_l, &padding_r, &padding_t, &padding_b);
|
(opt->obj, &padding_l, &padding_r, &padding_t, &padding_b);
|
||||||
evas_object_size_hint_max_get(opt->obj, &max_w, &max_h);
|
evas_object_size_hint_max_get(opt->obj, &max_w, &max_h);
|
||||||
evas_object_size_hint_min_get(opt->obj, &min_w, NULL);
|
efl_gfx_size_hint_combined_min_get(opt->obj, &min_w, NULL);
|
||||||
|
|
||||||
evas_object_geometry_get(opt->obj, NULL, NULL, &child_w, &child_h);
|
evas_object_geometry_get(opt->obj, NULL, NULL, &child_w, &child_h);
|
||||||
|
|
||||||
|
@ -1199,7 +1199,7 @@ _evas_box_layout_homogeneous_max_size_vertical(Eo *o, Evas_Object_Box_Data *priv
|
||||||
evas_object_size_hint_padding_get
|
evas_object_size_hint_padding_get
|
||||||
(opt->obj, &padding_l, &padding_r, &padding_t, &padding_b);
|
(opt->obj, &padding_l, &padding_r, &padding_t, &padding_b);
|
||||||
evas_object_size_hint_max_get(opt->obj, &max_w, &max_h);
|
evas_object_size_hint_max_get(opt->obj, &max_w, &max_h);
|
||||||
evas_object_size_hint_min_get(opt->obj, NULL, &min_h);
|
efl_gfx_size_hint_combined_min_get(opt->obj, NULL, &min_h);
|
||||||
|
|
||||||
evas_object_geometry_get(opt->obj, NULL, NULL, &child_w, &child_h);
|
evas_object_geometry_get(opt->obj, NULL, NULL, &child_w, &child_h);
|
||||||
|
|
||||||
|
@ -1610,7 +1610,7 @@ _evas_box_layout_stack(Eo *o, Evas_Object_Box_Data *priv, Evas_Object_Box_Data *
|
||||||
evas_object_size_hint_padding_get
|
evas_object_size_hint_padding_get
|
||||||
(child, &pad_l, &pad_r, &pad_t, &pad_b);
|
(child, &pad_l, &pad_r, &pad_t, &pad_b);
|
||||||
evas_object_size_hint_max_get(child, &max_w, &max_h);
|
evas_object_size_hint_max_get(child, &max_w, &max_h);
|
||||||
evas_object_size_hint_min_get(child, &min_w, &min_h);
|
efl_gfx_size_hint_combined_min_get(child, &min_w, &min_h);
|
||||||
|
|
||||||
_sizing_eval(opt->obj);
|
_sizing_eval(opt->obj);
|
||||||
evas_object_geometry_get(child, NULL, NULL, &child_w, &child_h);
|
evas_object_geometry_get(child, NULL, NULL, &child_w, &child_h);
|
||||||
|
|
|
@ -342,7 +342,7 @@ _evas_object_table_calculate_hints_homogeneous(Evas_Object *o, Evas_Table_Data *
|
||||||
Evas_Coord child_minw, child_minh, cell_minw, cell_minh;
|
Evas_Coord child_minw, child_minh, cell_minw, cell_minh;
|
||||||
double weightw, weighth;
|
double weightw, weighth;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(child, &opt->min.w, &opt->min.h);
|
efl_gfx_size_hint_combined_min_get(child, &opt->min.w, &opt->min.h);
|
||||||
evas_object_size_hint_max_get(child, &opt->max.w, &opt->max.h);
|
evas_object_size_hint_max_get(child, &opt->max.w, &opt->max.h);
|
||||||
evas_object_size_hint_padding_get
|
evas_object_size_hint_padding_get
|
||||||
(child, &opt->pad.l, &opt->pad.r, &opt->pad.t, &opt->pad.b);
|
(child, &opt->pad.l, &opt->pad.r, &opt->pad.t, &opt->pad.b);
|
||||||
|
@ -433,7 +433,7 @@ _evas_object_table_calculate_layout_homogeneous_sizes_item(const Evas_Object *o,
|
||||||
Evas_Coord minw, minh;
|
Evas_Coord minw, minh;
|
||||||
Eina_Bool expand_h, expand_v;
|
Eina_Bool expand_h, expand_v;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(o, &minw, &minh);
|
efl_gfx_size_hint_combined_min_get(o, &minw, &minh);
|
||||||
expand_h = priv->expand_h;
|
expand_h = priv->expand_h;
|
||||||
expand_v = priv->expand_v;
|
expand_v = priv->expand_v;
|
||||||
|
|
||||||
|
@ -656,7 +656,7 @@ _evas_object_table_calculate_hints_regular(Evas_Object *o, Evas_Table_Data *priv
|
||||||
Evas_Object *child = opt->obj;
|
Evas_Object *child = opt->obj;
|
||||||
double weightw, weighth;
|
double weightw, weighth;
|
||||||
|
|
||||||
evas_object_size_hint_min_get(child, &opt->min.w, &opt->min.h);
|
efl_gfx_size_hint_combined_min_get(child, &opt->min.w, &opt->min.h);
|
||||||
evas_object_size_hint_max_get(child, &opt->max.w, &opt->max.h);
|
evas_object_size_hint_max_get(child, &opt->max.w, &opt->max.h);
|
||||||
evas_object_size_hint_padding_get
|
evas_object_size_hint_padding_get
|
||||||
(child, &opt->pad.l, &opt->pad.r, &opt->pad.t, &opt->pad.b);
|
(child, &opt->pad.l, &opt->pad.r, &opt->pad.t, &opt->pad.b);
|
||||||
|
|
Loading…
Reference in New Issue