Tizen Native API
|
Functions | |
Evas_Object * | edje_object_add (Evas *evas) |
Instantiates a new edje object. | |
Eina_Bool | edje_object_preload (Evas_Object *obj, Eina_Bool cancel) |
Preloads the images on the edje Object in the background. |
This group discusses functions that deal with edje layouts and its components.
Evas_Object* edje_object_add | ( | Evas * | evas | ) |
Instantiates a new edje object.
This function creates a new edje smart object, returning its Evas_Object
handle. An edje object is useless without a (source) file set to it, so you would most probably call edje_object_file_set() afterwards, like in:
Evas_Object *edje; edje = edje_object_add(canvas); if (!edje) { fprintf(stderr, "could not create edje object!\n"); return NULL; } if (!edje_object_file_set(edje, "theme.edj", "group_name")) { int err = edje_object_load_error_get(edje); const char *errmsg = edje_load_error_str(err); fprintf(stderr, "could not load 'group_name' from theme.edj: %s", errmsg); evas_object_del(edje); return NULL; }
evas_object_smart_callback_add(edje_obj, "recalc", my_cb, my_cb_data);
[in] | evas | A valid Evas handle, the canvas to place the new object in |
NULL
on errorsEina_Bool edje_object_preload | ( | Evas_Object * | obj, |
Eina_Bool | cancel | ||
) |
Preloads the images on the edje Object in the background.
This function requests the preload of data images (on the given object) in the background. The work is queued before being processed (because there might be other pending requests of this type). It emits a signal "preload,done" when finished.
[in] | obj | A handle to an edje object |
[in] | cancel | If EINA_FALSE it is added to the preloading work queue, otherwise EINA_TRUE to remove it (if it is issued before) |
EINA_FASLE
if obj is not a valid edje object, otherwise EINA_TRUE