Efl: rename size hint content_min to restricted_min

Still not sure about which keyword is the best to use here,
but anyway, it's a protected function so users should realize
it's probably not what they want.
This commit is contained in:
Jean-Philippe Andre 2016-06-09 14:31:37 +09:00
parent 748f17b840
commit f773206769
4 changed files with 13 additions and 13 deletions

View File

@ -915,7 +915,7 @@ _edje_recalc_do(Edje *ed)
ed->recalc_hints = EINA_FALSE;
edje_obj_size_min_calc(ed->obj, &w, &h);
efl_gfx_size_hint_content_min_set(ed->obj, w, h);
efl_gfx_size_hint_restricted_min_set(ed->obj, w, h);
}
if (!ed->collection) return;
@ -2941,7 +2941,7 @@ _edje_part_recalc_single(Edje *ed,
evas_obj_smart_need_recalculate_set(ep->object, 1);
evas_obj_smart_calculate(ep->object);
efl_gfx_size_hint_content_min_get(ep->object, &lminw, &lminh);
efl_gfx_size_hint_restricted_min_get(ep->object, &lminw, &lminh);
if (((Edje_Part_Description_Table *)chosen_desc)->table.min.h)
{
if (lminw > minw) minw = lminw;
@ -2959,7 +2959,7 @@ _edje_part_recalc_single(Edje *ed,
evas_obj_smart_need_recalculate_set(ep->object, 1);
evas_obj_smart_calculate(ep->object);
efl_gfx_size_hint_content_min_get(ep->object, &lminw, &lminh);
efl_gfx_size_hint_restricted_min_get(ep->object, &lminw, &lminh);
if (((Edje_Part_Description_Box *)chosen_desc)->box.min.h)
{
if (lminw > minw) minw = lminw;

View File

@ -102,7 +102,7 @@ interface Efl.Gfx.Size.Hint
h: int; [[Integer to use as the preferred height hint.]]
}
}
@property hint_content_min @protected {
@property hint_restricted_min @protected {
[[Internal hints for an object's minimum size.
This is not a size enforcement in any way, it's just a hint
@ -122,10 +122,10 @@ interface Efl.Gfx.Size.Hint
}
}
@property hint_combined_min {
[[Read-only minimum size combining both @.hint_content_min and
[[Read-only minimum size combining both @.hint_restricted_min and
@.hint_request size hints.
@.hint_content_min is intended for mostly internal usage
@.hint_restricted_min is intended for mostly internal usage
and widget developers, and @.hint_request is intended to be
set from application side. @.hint_combined_min combines both values
by taking their repective maximum (in both width and height), and

View File

@ -903,8 +903,8 @@ abstract Evas.Object (Eo.Base, Evas.Common_Interface, Efl.Gfx, Efl.Gfx.Stack,
Efl.Gfx.Size.Hint.hint_align.set;
Efl.Gfx.Size.Hint.hint_align.get;
Efl.Gfx.Size.Hint.hint_combined_min.get;
Efl.Gfx.Size.Hint.hint_content_min.set;
Efl.Gfx.Size.Hint.hint_content_min.get;
Efl.Gfx.Size.Hint.hint_restricted_min.set;
Efl.Gfx.Size.Hint.hint_restricted_min.get;
Efl.Gfx.Size.Hint.hint_max.set;
Efl.Gfx.Size.Hint.hint_max.get;
Efl.Gfx.Size.Hint.hint_margin.set;

View File

@ -1105,7 +1105,7 @@ _evas_object_size_hint_display_mode_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Prot
}
EOLIAN static void
_evas_object_efl_gfx_size_hint_hint_content_min_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
_evas_object_efl_gfx_size_hint_hint_restricted_min_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Coord *w, Evas_Coord *h)
{
if ((!obj->size_hints) || obj->delete_me)
{
@ -1118,7 +1118,7 @@ _evas_object_efl_gfx_size_hint_hint_content_min_get(Eo *eo_obj EINA_UNUSED, Evas
}
EOLIAN static void
_evas_object_efl_gfx_size_hint_hint_content_min_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord w, Evas_Coord h)
_evas_object_efl_gfx_size_hint_hint_restricted_min_set(Eo *eo_obj, Evas_Object_Protected_Data *obj, Evas_Coord w, Evas_Coord h)
{
if (obj->delete_me)
return;
@ -1740,7 +1740,7 @@ _evas_object_eo_base_dbg_info_get(Eo *eo_obj, Evas_Object_Protected_Data *obj EI
efl_gfx_position_get(eo_obj, &x, &y);
efl_gfx_size_get(eo_obj, &w, &h);
scale = evas_obj_scale_get(eo_obj);
efl_gfx_size_hint_content_min_get(eo_obj, &minw, &minh);
efl_gfx_size_hint_restricted_min_get(eo_obj, &minw, &minh);
efl_gfx_size_hint_max_get(eo_obj, &maxw, &maxh);
efl_gfx_size_hint_request_get(eo_obj, &requestw, &requesth);
efl_gfx_size_hint_align_get(eo_obj, &dblx, &dbly);
@ -2186,13 +2186,13 @@ evas_object_size_hint_request_get(const Evas_Object *obj, Evas_Coord *w, Evas_Co
EAPI void
evas_object_size_hint_min_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h)
{
efl_gfx_size_hint_content_min_set(obj, w, h);
efl_gfx_size_hint_restricted_min_set(obj, w, h);
}
EAPI void
evas_object_size_hint_min_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h)
{
efl_gfx_size_hint_content_min_get(obj, w, h);
efl_gfx_size_hint_restricted_min_get(obj, w, h);
}
EAPI void