Class Reference elementList

A element of a list of drawing-elements. More...

Member

elementList* nextElement
element* thisElement
elementList* firstOnLayer(int layer)
elementList* nextOnLayer(int layer)

Detailed Description

graph LR ce(cell)--firstElement-->el(elementList) el==thisElement==>e(element) el==nextElement==>el click ce "/layoutscript/api/cell" click el "/layoutscript/api/elementlist" click e "/layoutscript/api/element" classDef thisClas fill:#eaf5fc,stroke:#3c7faa,stroke-width:4px; classDef clas fill:#eaf5fc,stroke:#3c7faa,stroke-width:1px; class el thisClas class ce,la,dr,e clas

This class is a list-element for the drawing-elements

Member Function Documentation


elementList* elementList::nextElement

A Pointer to the next drawing-element of the cell is returned.

Example: (loop over all shapes of the cell)

elementList *el=layout->drawing->currentCell->firstElement;
while (el!=NULL) {
   if (el->thisElement!=NULL){
      // e.g. el->thisElement->selectAll();
      // ...
   }
   el=el->nextElement;
}

element* elementList::thisElement

A pointer to a drawing-element.

Obsolete Members


elementList* elementList::firstOnLayer(int layer)

A pointer to the first element with a shape on layer is returned. NULL is returned, if no more layer is on the given layer.


elementList* elementList::nextOnLayer(int layer)

A pointer to the next element with a shape on layer is returned. NULL is returned, if no more element is on the given layer.

Example: (loop over all shapes on layer 5)

elementList *el=layout->drawing->currentCell->firstElement->firstOnLayer(5);
while (el!=NULL) {
   // e.g. el->thisElement->selectAll();
   // ...
   el=el->nextOnLayer(5);
}