Rename Clay_Rectangle to Clay_BoundingBox (#4)

This commit is contained in:
Nic Barker 2024-08-28 16:13:28 +12:00 committed by GitHub
parent 52b6b0564e
commit ca2c625bb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 14 deletions

View file

@ -1462,7 +1462,7 @@ An array of [Clay_RenderCommand](#clay_rendercommand)s representing the calculat
```C
typedef struct
{
Clay_Rectangle boundingBox;
Clay_BoundingBox boundingBox;
Clay_ElementConfigUnion config;
Clay_String text;
uint32_t id;
@ -1487,12 +1487,12 @@ An enum indicating how this render command should be handled. Possible values in
---
**`.boundingBox`** - `Clay_Rectangle`
**`.boundingBox`** - `Clay_BoundingBox`
```C
typedef struct {
float x, y, width, height;
} Clay_Rectangle;
} Clay_BoundingBox;
```
A rectangle representing the bounding box of this render command, with `.x` and `.y` representing the top left corner of the element.