## 5.6 Inquring the Geometry of a Widget

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);

return the geometry of a widget.

`void EZ_GetWidgetPosition(EZ_Widget *widget, int *x, int *y);`

return the location of (the upper left corner) a widget.

    void EZ_GetWidgetDimension(EZ_Widget *widget, int *w, int *h);
    void EZ_GetWidgetMinDimension(EZ_Widget *widget, int *w, int *h);

return the dimension (or minimal dimension) of a widget.

    int  EZ_GetWidgetBorderWidth(EZ_Widget *widget);
    void EZ_GetWidgetBorder(EZ_Widget *widget,int *bwidth,
                                              int *btype);

return the border characteristics.

    void  EZ_GetWidgetPaddings(EZ_Widget *widget, int *padx,
                                 int *pady, int *focus_pad);

return all paddings.

HTML Documentation Maintainance:`Arturo Espinosa <arturo@nuclecu.unam.mx>`