code: func xInRect(xtest uint, rect Rect) bool {
  	x, _, w, _ := RectPieces(rect)
  	return int(xtest) >= x && int(xtest) < (x+w)
  }
docs: // xInRect is whether a particular x-coordinate is vertically constrained by
  // a rectangle.