evas_object_geometry_get returns all 0s

evas_object_geometry_get returns all 0s

BY 24 Oct 2017 Native Application Development

I’m trying to apply a map to a label, but when i call 

evas_object_geometry_get(vc->label1, &x, &y, &w, &h);

i’m doing it inside the _on_create_cb, so i don’t know if this information is not yet available during that callback.

Anyway, when i’m tryin to get this information during a click button event, the functon return correct values. 

So i’m wondering if i want to do some initial configuration on an object (i.e. applying a map to rotate it), when i’m supposedo to do it?

 

Written by