hi_rect

Function

Defines the width, height, and upper-left coordinates of a rectangle.

Definition

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

For details about basic data types hi_u32 and hi_s32, see Basic Data Types.

Members

Member

Description

x

X-coordinate of the upper-left corner.

y

Y-coordinate of the upper-left corner.

width

Rectangle width.

height

Rectangle height.