child method

Terminal child(
  1. int x,
  2. int y,
  3. int width,
  4. int height,
)

Get a child Terminal within this one

Implementation

Terminal child(int x, int y, int width, int height) {
  boundsCheck(x, y);
  boundsCheck(x + width - 1, y + height - 1);
  return ChildTerminal(Vec2(x, y), Vec2(width, height), this);
}