The EZ widget library provides a few routines for extracting the geometry of a widget.
void EZ_GetWidgetGeometry(EZ_Widget *widget, int *x_return, int *y_return, int *w_return, int *h_return); void EZ_GetWidgetAbsoluteGeometry(EZ_Widget *widget, int *x_return, int *y_return, int *w_return, int *h_return);
void EZ_GetWidgetDimension(EZ_Widget *widget, int *w, int *h);
void EZ_GetWidgetMinDimension(EZ_Widget *widget, int *w, int *h);
int EZ_GetWidgetBorderWidth(EZ_Widget *widget);
void EZ_GetWidgetBorder(EZ_Widget *widget,int *bwidth,
int *btype);
void EZ_GetWidgetPaddings(EZ_Widget *widget, int *padx,
int *pady, int *focus_pad);
void EZ_GetWidgetPosition(EZ_Widget *widget, int *x, int *y);