hi_rect

Description

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

Prototype

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

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.