void EZ_WorkAreaInsertItem(EZ_Widget *workArea,
EZ_Item *item)
This function inserts item
at the end of the list of
items managed by workArea
.
void EZ_WorkAreaInsertItemBefore(EZ_Widget *workArea,
EZ_Item *exist_item, EZ_Item *new_item)
This function inserts new_item
before exist_item
.
if exist_item
is not currently on the display list of
workArea
, new_item
will be inserted
at the end of the list.
void EZ_WorkAreaInsertItemAfter(EZ_Widget *workArea,
EZ_Item *exist_item, EZ_Item *new_item)
This function inserts new_item
after exist_item
.
if exist_item
is not currently on the display list of
workArea
, new_item
will be inserted
at the end of the list.
void EZ_WorkAreaInsertItemUsingIdx(EZ_Widget *workArea,
EZ_Item *item, int index)
This function inserts item
at location index
.
if idx
falls out of range, item
will be inserted
at the end of the list managed by workArea
.
void EZ_WorkAreaDeleteItem(EZ_Widget *workArea,
EZ_Item *item)
This function searches the list of items
managed by workArea
. If found, then item
will be
deleted.
void EZ_WorkAreaDeleteItemUsingIdx(EZ_Widget *workArea,
int index)
If index
is in the range of the list of items managed by
workArea
, the item at location index
will be deleted.
void EZ_WorkAreaClear(EZ_Widget *workArea)
This function deletes all the display items currently managed by
workArea
.
void EZ_GetWorkAreaSelection(EZ_Widget *workArea)
This function returns the selected item in workArea
. If no
selections are made, it returns NULL
.
void EZ_WorkAreaRearrange(EZ_Widget *workArea)
This function invokes the geometry manager of workArea
to
recompute the geometry of all its display items and redisplay them.
void EZ_WorkAreaSelectItem(EZ_Widget *workArea,
EZ_Item *item, int *location)
This function sets the selection of a WorkArea widget externally. If
item
is currently managed by workArea
, the selection
will be set on it. If item
is NULL
, the current
selection is removed.
If location
is not NULL
, the selected item will
be displayed exactly at the specified location.
void EZ_WorkAreaSelectItemUsingIdx(EZ_Widget *workArea,
int idx, int *location)
This function sets the selection of a WorkArea widget externally. If
idx
is a valid index, the selection for workArea
will be set on the corresponding item.
If idx = -1
, the current selection is removed.
If location
is not NULL
, the selected item will
be displayed exactly at the specified location.