Lines Matching refs:DiagramItem

73 	if (fWires && (fTypes & DiagramItem::M_WIRE)) {  in ~DiagramItemGroup()
76 delete static_cast<DiagramItem*>(fWires->ItemAt(i)); in ~DiagramItemGroup()
80 if (fBoxes && (fTypes & DiagramItem::M_BOX)) { in ~DiagramItemGroup()
83 delete static_cast<DiagramItem*>(fBoxes->ItemAt(i)); in ~DiagramItemGroup()
87 if (fEndPoints && (fTypes & DiagramItem::M_ENDPOINT)) { in ~DiagramItemGroup()
90 delete static_cast<DiagramItem*>(fEndPoints->ItemAt(i)); in ~DiagramItemGroup()
111 if (whichType & DiagramItem::M_BOX) { in CountItems()
116 if (whichType & DiagramItem::M_WIRE) { in CountItems()
121 if (whichType & DiagramItem::M_ENDPOINT) { in CountItems()
135 DiagramItem*
140 if (whichType & DiagramItem::M_BOX) { in ItemAt()
141 if (fBoxes && (index < CountItems(DiagramItem::M_BOX))) in ItemAt()
142 return static_cast<DiagramItem *>(fBoxes->ItemAt(index)); in ItemAt()
144 index -= CountItems(DiagramItem::M_BOX); in ItemAt()
147 if (whichType & DiagramItem::M_WIRE) { in ItemAt()
148 if (fWires && (index < CountItems(DiagramItem::M_WIRE))) in ItemAt()
149 return static_cast<DiagramItem *>(fWires->ItemAt(index)); in ItemAt()
151 index -= CountItems(DiagramItem::M_WIRE); in ItemAt()
154 if (whichType & DiagramItem::M_ENDPOINT) { in ItemAt()
155 if (fEndPoints && (index < CountItems(DiagramItem::M_ENDPOINT))) in ItemAt()
156 return static_cast<DiagramItem *>(fEndPoints->ItemAt(index)); in ItemAt()
170 DiagramItem*
174 if (fTypes & DiagramItem::M_BOX) { in ItemUnder()
175 for (uint32 i = 0; i < CountItems(DiagramItem::M_BOX); i++) { in ItemUnder()
176 DiagramItem *item = ItemAt(i, DiagramItem::M_BOX); in ItemUnder()
184 if (fTypes & DiagramItem::M_WIRE) { in ItemUnder()
186 DiagramItem *closestItem = 0; in ItemUnder()
187 for (uint32 i = 0; i < CountItems(DiagramItem::M_WIRE); i++) { in ItemUnder()
188 DiagramItem *item = ItemAt(i, DiagramItem::M_WIRE); in ItemUnder()
204 if (fTypes & DiagramItem::M_ENDPOINT) { in ItemUnder()
205 for (uint32 i = 0; i < CountItems(DiagramItem::M_ENDPOINT); i++) { in ItemUnder()
206 DiagramItem *item = ItemAt(i, DiagramItem::M_ENDPOINT); in ItemUnder()
221 DiagramItemGroup::AddItem(DiagramItem *item) in AddItem()
229 case DiagramItem::M_BOX: in AddItem()
235 case DiagramItem::M_WIRE: in AddItem()
241 case DiagramItem::M_ENDPOINT: in AddItem()
255 DiagramItemGroup::RemoveItem(DiagramItem* item) in RemoveItem()
269 case DiagramItem::M_BOX: in RemoveItem()
276 case DiagramItem::M_WIRE: in RemoveItem()
283 case DiagramItem::M_ENDPOINT: in RemoveItem()
305 if ((whichType != DiagramItem::M_ANY) && (fTypes & whichType)) { in SortItems()
307 case DiagramItem::M_BOX: in SortItems()
312 case DiagramItem::M_WIRE: in SortItems()
317 case DiagramItem::M_ENDPOINT: in SortItems()
336 if (whichType & DiagramItem::M_WIRE) { in DrawItems()
337 for (int32 i = CountItems(DiagramItem::M_WIRE) - 1; i >= 0; i--) { in DrawItems()
338 DiagramItem *item = ItemAt(i, DiagramItem::M_WIRE); in DrawItems()
344 if (whichType & DiagramItem::M_BOX) { in DrawItems()
345 for (int32 i = CountItems(DiagramItem::M_BOX) - 1; i >= 0; i--) { in DrawItems()
346 DiagramItem *item = ItemAt(i, DiagramItem::M_BOX); in DrawItems()
355 if (whichType & DiagramItem::M_ENDPOINT) { in DrawItems()
356 for (int32 i = CountItems(DiagramItem::M_ENDPOINT) - 1; i >= 0; i--) { in DrawItems()
357 DiagramItem *item = ItemAt(i, DiagramItem::M_ENDPOINT); in DrawItems()
370 DiagramItemGroup::GetClippingAbove(DiagramItem *which, BRegion *region) in GetClippingAbove()
376 case DiagramItem::M_BOX: in GetClippingAbove()
382 DiagramItem *item = ItemAt(i, DiagramItem::M_BOX); in GetClippingAbove()
392 case DiagramItem::M_WIRE: in GetClippingAbove()
395 for (uint32 i = 0; i < CountItems(DiagramItem::M_BOX); i++) { in GetClippingAbove()
396 DiagramItem *item = ItemAt(i, DiagramItem::M_BOX); in GetClippingAbove()
444 DiagramItem*
449 return static_cast<DiagramItem *>(fSelection->ItemAt(index)); in SelectedItemAt()
464 DiagramItemGroup::SelectItem(DiagramItem* which, bool deselectOthers) in SelectItem()
505 DiagramItemGroup::DeselectItem(DiagramItem* which) in DeselectItem()
574 if (SelectedType() == DiagramItem::M_BOX) { in DragSelectionBy()
578 DiagramItem *item = dynamic_cast<DiagramItem *>(SelectedItemAt(i)); in DragSelectionBy()