Lines Matching defs:index
132 at the given index; if none is found, this function
136 DiagramItemGroup::ItemAt(uint32 index, uint32 whichType) const
141 if (fBoxes && (index < CountItems(DiagramItem::M_BOX)))
142 return static_cast<DiagramItem *>(fBoxes->ItemAt(index));
144 index -= CountItems(DiagramItem::M_BOX);
148 if (fWires && (index < CountItems(DiagramItem::M_WIRE)))
149 return static_cast<DiagramItem *>(fWires->ItemAt(index));
151 index -= CountItems(DiagramItem::M_WIRE);
155 if (fEndPoints && (index < CountItems(DiagramItem::M_ENDPOINT)))
156 return static_cast<DiagramItem *>(fEndPoints->ItemAt(index));
378 int32 index = fBoxes->IndexOf(which);
379 if (index >= 0) { // the item was found
381 for (int32 i = 0; i < index; i++) {
441 at the given \param index; if none is found, this function
445 DiagramItemGroup::SelectedItemAt(uint32 index) const
449 return static_cast<DiagramItem *>(fSelection->ItemAt(index));