void PathPointComponent::updatePosition() { const Rectangle<int> area (((PaintRoutineEditor*) getParentComponent())->getComponentArea()); jassert (getParentComponent() != nullptr); double x, y; path->getPoint (index, pointNumber, x, y, area); setCentrePosition (roundToInt (x), roundToInt (y)); }
void FileLocationEditorWindow::restoreWindowPosition(int posX, int posY) { setCentrePosition(posX, posY); }