封装x和y属性。
名称
类型
描述
x
int
X值。
y
Y值。
构造函数
ScreenCoordinate({required int x, required int y})
创建ScreenCoordinate对象。
参数