Ejemplo n.º 1
0
void
ActiveWindow::MoveTo(const Rect& r)
{
    if (rect.x == r.x &&
            rect.y == r.y &&
            rect.w == r.w &&
            rect.h == r.h)
    return;

    rect = r;
    CalcGrid();

    ListIter<View> v = view_list;
    while (++v)
    v->OnWindowMove();

    if (layout)
    layout->DoLayout(this);
}