ConstrainTo
void ConstrainTo(BRect rect);
where.ConstrainTo(screen.Frame());
where.ConstrainTo(rect);
fStartCorner.ConstrainTo(Window()->Frame());
fEndCorner.ConstrainTo(Window()->Frame());
point.ConstrainTo(fBitmap->Bounds());
leftTop.ConstrainTo(screenFrame);
loc.ConstrainTo(viewBounds);
loc.ConstrainTo(bounds);
void ConstrainTo(const IntRect& r);
fHotSpot.ConstrainTo(Bounds());
fHotSpot.ConstrainTo(Bounds());
where.ConstrainTo(fFrame);