forked from enlightenment/efl
able to force a calc if we want to...
SVN revision: 12288
This commit is contained in:
parent
3a1f56385d
commit
64f8d970a8
|
@ -187,6 +187,7 @@ extern "C" {
|
|||
EAPI void edje_object_text_class_set (Evas_Object *obj, const char *text_class, const char *font, Evas_Font_Size size);
|
||||
EAPI void edje_object_size_min_get (Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh);
|
||||
EAPI void edje_object_size_max_get (Evas_Object *obj, Evas_Coord *maxw, Evas_Coord *maxh);
|
||||
EAPI void edje_object_calc_force (Evas_Object *obj);
|
||||
EAPI void edje_object_size_min_calc (Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh);
|
||||
EAPI int edje_object_part_exists (Evas_Object *obj, const char *part);
|
||||
EAPI void edje_object_part_geometry_get (Evas_Object *obj, const char *part, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
|
||||
|
|
|
@ -763,6 +763,26 @@ edje_object_size_max_get(Evas_Object *obj, Evas_Coord *maxw, Evas_Coord *maxh)
|
|||
}
|
||||
}
|
||||
|
||||
/** Force a Size/Geometry Calc
|
||||
* @param obj A valid Evas_Object handle
|
||||
*
|
||||
* Forces the object @p obj to recalc layout regardless of freeze/thaw
|
||||
*/
|
||||
void
|
||||
edje_object_calc_force(Evas_Object *obj)
|
||||
{
|
||||
Edje *ed;
|
||||
int pf;
|
||||
|
||||
ed = _edje_fetch(obj);
|
||||
if (!ed) return;
|
||||
ed->dirty = 1;
|
||||
pf = ed->freeze;
|
||||
ed->freeze = 0;
|
||||
_edje_recalc(ed);
|
||||
ed->freeze = pf;
|
||||
}
|
||||
|
||||
/** Calculate minimum size
|
||||
* @param obj A valid Evas_Object handle
|
||||
* @param minw Minimum width pointer
|
||||
|
|
Loading…
Reference in New Issue