## 10.1 Widget Item

Widget items are fully functional widgets. They are very different from other items. For a label item or a fig item, interactions between the user and the item are handled by the middle man, its host widget. For a widget item, however, user interactions are directly handled by the relevent widget. For this reason, callbacks registered to a widget item will probably never get called.

### 10.1.1 Resources

Widget item support the following resources.

configOption | resourceName | valueType
`EZ_X` | `x` | `int`
`EZ_Y` | `y` | `int`
`EZ_LOCATION` | `location` | `int_x int_y`
`EZ_WIDTH` | `width` | `int`
`EZ_HEIGHT` | `height` | `int`
`EZ_SIZE` | `size` | `int_w int_h`
`EZ_GEOMETRY` | `geometry` | `int_x int_y int_w int_h`

configOption | resourceName | valueType
`EZ_PADX` | `padx` | `enum`
`EZ_PADY` | `pady` | `int`
`EZ_BORDER_TYPE` | `borderType` | `enum`
`EZ_BORDER_WIDTH` | `borderWidth` | `int`
`EZ_BACKGROUND` | `background` | `string`

### 10.1.2 Interface Functions

`void EZ_SetWidgetItemWidget(EZ_Item *item, EZ_Widget *widget);`

set the widget of a widget item.

`EZ_Widget *EZ_GetWidgetItemWidget(EZ_Item *item);`

return the widget of a widget item.

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