在 1.15 版本加入: 在以前的版本中,使用了一个(float、float、float)元组,而不是 Rectangle .
Rectangle
用于保存矩形的数据结构。
x -- 矩形左侧的X坐标
y -- 矩形顶边的Y坐标
width -- 矩形的宽度
height -- 矩形的高度