### 2.9.2 Inquring about 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)`

This function returns the geometry of a widget.

`void EZ_GetWidgetAbsoluteGeometry(EZ_Widget *widget,`

`int *x_return, int *y_return, int *w_return, int *h_return)`

This function returns the geometry of a widget. The location is computed relative to the top-left corner of your display.

`void EZ_GetWidgetPosition(EZ_Widget *widget, int *x_return,`

`int *y_return)`

This function returns the location of a widget inside its parent.

`void EZ_GetWidgetDimension(EZ_Widget *widget, int *w_return,`

`int *h_return)`

This function returns the display width and height of widget. Note: display width/height may differ from the configured width/height due to window manager resizing.

`int EZ_GetWidgetWidth(EZ_Widget *widget)`

This function returns the current width of widget, in pixels.

`int EZ_GetWidgetHeight(EZ_Widget *widget)`

This function returns the current height of widget, in pixels.

`int EZ_GetWidgetBorderWidth(EZ_Widget *widget)`

This function returns the border width of widget, in pixels.

`int EZ_GetWidgetMinDimension(EZ_Widget *widget, int *w_ret,`

`int *h_ret)`

This function returns the minimal width of widget, in pixels. This value may differ from the display width due to filling and expanding.

`int EZ_GetWidgetMinWidth(EZ_Widget *widget)`

This function returns the minimal width of widget, in pixels. This value may differ from the display width due to filling and expanding.

`int EZ_GetWidgetMinHeight(EZ_Widget *widget)`

This function returns the minimal height of widget, in pixels. This value may differ from the display height due to filling and expanding.

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