A list element for cells. More...
| cellList* | nextCell |
| cell* | thisCell |
A cellList node is one step in the linked list of all cells of a drawingField. thisCell points to the cell at this node; nextCell points to the following node, or NULL at the end of the list. The head of the list is layout->drawing->firstCell; the cell on screen is a different pointer, layout->drawing->currentCell, which may or may not be the first node. Walk the list when you need every cell, for example to rename, count or search. The example below visits each cell and skips empty thisCell pointers.
Example:
cellList *cl = layout->drawing->firstCell;
while (cl != NULL) {
if (cl->thisCell != NULL) {
// e.g. debug(cl->thisCell->cellName);
}
cl = cl->nextCell;
}
The next node in the list, or NULL after the last cell.
The cell stored at this node.