Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        Edje.h edje_util.c 


Log Message:


able to force a calc if we want to...

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/Edje.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- Edje.h      25 Nov 2004 05:18:31 -0000      1.38
+++ Edje.h      28 Nov 2004 14:52:01 -0000      1.39
@@ -187,6 +187,7 @@
    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);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_util.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -3 -r1.46 -r1.47
--- edje_util.c 20 Nov 2004 04:43:37 -0000      1.46
+++ edje_util.c 28 Nov 2004 14:52:01 -0000      1.47
@@ -763,6 +763,26 @@
      }
 }
 
+/** 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




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to