# Rectangle (/zh-CN/api-reference/rtc/cpp-all-platforms/class-rectangle)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_rectangle__prototype"></a>

```cpp
struct Rectangle {
  int x;
  int y;
  int width;
  int height;
};
```

<a id="class_rectangle__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="x"></a>
<Parameter name="x">

距左上角的水平偏移量。

</Parameter>
<a id="y"></a>
<Parameter name="y">

距左上角的垂直偏移量。

</Parameter>
<a id="width"></a>
<Parameter name="width">

目标区域的宽度。

</Parameter>
<a id="height"></a>
<Parameter name="height">

目标区域的高度。

</Parameter>
</ParameterList>
