---
title: hi_rect
description: "定义矩形宽高和左上角坐标"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_1118.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_1118.html
indexId: a6bee3742e6122529f2be1fa5b60c3d6b950c962f3ce69b7d70a6426fdeef7e4105
---
# hi_rect

#### 说明

定义矩形宽高和左上角坐标


#### 定义

```
typedef struct {
hi_s32
x;
hi_s32
y;
hi_s32
width;
hi_s32
height;
} hi_rect;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| x | 左上角x轴 |
| y | 左上角y轴 |
| width | 矩形宽度 |
| height | 矩形高度 |
