文档中心/本页总览Rectangle用于设置目标区域相对于屏幕或窗口的位置。 C++struct Rectangle { int x; int y; int width; int height;}; x 距左上角的水平偏移量。 y 距左上角的垂直偏移量。 width 目标区域的宽度。 height 目标区域的高度。