add the actual recalc smart callback code and docs.

SVN revision: 66843
This commit is contained in:
Carsten Haitzler 2012-01-04 04:35:37 +00:00
parent e204bd5221
commit 61d66cf1b1
2 changed files with 15 additions and 1 deletions

View File

@ -1653,8 +1653,21 @@ EAPI void edje_box_layout_register (const char *name, Evas_Object
* }
*
* @endcode
*
* @note You can get a callback every time edje re-calculates the object
* (either due to animation or some kind of signal or input). This is called
* in-line just after the recalculation has occured. It is a good idea not
* to go and delete or alter the object inside this callbacks, simply make
* a note that the recalculation has taken place and then do somethnig about
* it outside the callback. to register a callback use code like:
*
* @code
* evas_object_smart_callback_add(edje_obj, "recalc", my_cb, my_cb_data);
* @endcode
*
* @see evas_object_smart_callback_add()
*
* @note before creating the first Edje object in your code, remember
* @note Before creating the first Edje object in your code, remember
* to initialize the library, with edje_init(), or unexpected behavior
* might occur.
*/

View File

@ -460,6 +460,7 @@ _edje_recalc_do(Edje *ed)
ed->all_part_change = 0;
ed->text_part_change = 0;
#endif
evas_object_smart_callback_call(ed->obj, "recalc", NULL);
}
void