containsPoint method
Whether a terminal coordinate lies on the visible part of this panel.
Implementation
bool containsPoint(int x, int y) {
final bounds = panelBounds;
return x >= 0 &&
y >= 0 &&
x < terminalWidth &&
y < terminalHeight &&
x >= bounds.x &&
x < bounds.x + bounds.w &&
y >= bounds.y &&
y < bounds.y + bounds.h;
}