How to print the rectangle size?

How to print the rectangle size?

BY 27 Aug 2015 Native Application Development

I need to debug following code and to know the size of the rectangle.

   // Event Rect
   ad->rect = evas_object_rectangle_add(evas_object_evas_get(ad->box));
   evas_object_size_hint_weight_set(ad->rect, EVAS_HINT_EXPAND, VAS_HINT_EXPAND);
   evas_object_size_hint_align_set(ad->rect, EVAS_HINT_FILL, EVAS_HINT_FILL);
   evas_object_color_set(ad->rect, 204, 204, 204, 255);
   evas_object_repeat_events_set(ad->rect, EINA_TRUE);

Now I know the rect will expand to the size of the box, but how can I print the rectangle size out?

I want to get the value of both the left top point and the right bottom point of the rectangle.

Written by