vp = p.getViewport();
vp = p.getViewRectangle();
    protected WidgetBoundingRectangle calcVisiblityRect(Widget w) {        WidgetBoundingRectangle r = null;        Widget p = w.getWidgetParent();        WidgetViewport vp = null;        if (p != null) {            vp = p.getViewport();            r = new WidgetBoundingRectangle(true);            Vector2f d = null;            Vector2f l = w.getAbsoluteLocation();            if (centerWidget == w && centerDim != null) {                d = centerDim;            } else if (eastWidget == w && eastDim != null) {                d = eastDim;            } else if (southWidget == w && southDim != null) {                d = southDim;            } else if (northWidget == w && northDim != null) {                d = northDim;            } else if (westWidget == w && westDim != null) {                d = westDim;            }            if (d != null) {                r.setMin(l);                r.setWidthHeight(d.x, d.y);                r = WidgetBoundingRectangle.clip(r, vp);            }        }        return r;    }