예제 #1
0
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));
}
예제 #2
0
void FileLocationEditorWindow::restoreWindowPosition(int posX, int posY)
{
    setCentrePosition(posX, posY);
}