## 10.5 Commands Common to All Display Items

Here is a list of commands common to all display items.

`EZ_Item *EZ_DuplicateItem (EZ_Item *item);`

duplicate a figure item or a label item (not available for widget item).

`void EZ_DestroyItem(EZ_Item *item);`

delete a display item.

`int EZ_GetItemType(EZ_Item *item);`

return the type of a display item.

`void EZ_GetItemBwAndXYPading(EZ_Item *item, int *bw, int *xpad, int *ypad);`

return border width and paddings of a display item.

`void EZ_GetItemClientData(EZ_Item *item, int *i, void **p);`

return the client data attached to a display item.

`int EZ_GetItemIntData(EZ_Item *item);`

return the integer attached to a display item.

`void *EZ_GetItemPtrData(EZ_Item *item);`

return the pointer attached to a display item.

`void EZ_SetItemClientData(EZ_Item *item, int i, void *p);`

attach client data to a display item.

`void EZ_SetItemIntData(EZ_Item *item, int i);`

attach an integer to a display item.

`void EZ_SetItemPtrData(EZ_Item *item, void *p);`

attach a pointer to a display item.

    void EZ_AddItemCallBack(EZ_Item *item, int which,
            EZ_CallBack callback, void *cdata, int where);

add a callback or a destroy callback to a display item.

    void EZ_RemoveItemCallBack(EZ_Item *item,  int which,
           EZ_CallBack callback, void *cdata);

remove a callback/destroy callback from a display item.

`void EZ_RemoveAllItemCallBacks(EZ_Item *item, int which);`

remove all callbacks/destroy callbacks.

`EZ_Widget *EZ_GetItemHostWidget(EZ_Item *item);`

return the host widget of a display item.

`void EZ_UpdateDisplayItem (EZ_Item *item);`

redisplay a display item.

`void EZ_SetItemPosition(EZ_Item *item, int x, int y);`

set the location of a display item.

`void EZ_GetItemPosition(EZ_Item *item, int *x, int *y);`

return the configured/computed location of a display item.

`void EZ_GetItemAPosition(EZ_Item *item, int *x, int *y);`

return the actual/displayed location of a display item.

`void EZ_SetItemDimension(EZ_Item *item, int w, int h);`

set the dimension of a display item.

`void EZ_GetItemDimension(EZ_Item *item, int *w, int *h);`

return the configured/computed dimension of a display item.

`void EZ_GetItemADimension(EZ_Item *item, int *w, int *h);`

return the actual/displayed dimension of a display item.

`int EZ_PickAnItem( EZ_Item *item, int x, int y);`

return True if point (x,y) is on item.

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