bottomLeftRect function

Rectangle bottomLeftRect(
  1. Rectangle area,
  2. int width,
  3. int height
)

Returns a new Rectangle at the bottom-left of area with width and height.

Upstream: BottomLeftRect in third_party/ultraviolet/layout.go.

Implementation

Rectangle bottomLeftRect(Rectangle area, int width, int height) {
  return rect(area.minX, area.maxY - height, width, height).intersect(area);
}