void JucerTreeViewBase::showRenameBox() { Rectangle<int> r (getItemPosition (true)); r.setLeft (r.getX() + textX); r.setHeight (getItemHeight()); new RenameTreeItemCallback (*this, *getOwnerView(), r); }
void TreeViewItem::repaintItem() const { if (ownerView != 0 && areAllParentsOpen()) { Rectangle<int> r (getItemPosition (true)); r.setLeft (0); ownerView->viewport->repaint (r); } }