Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Clay_Rectangle to Clay_BoundingBox to prevent confusion #4

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

nicbarker
Copy link
Owner

@nicbarker nicbarker commented Aug 28, 2024

I made what I believe to be a mistake in naming the internal {x, y, width, height} struct Clay_Rectangle.

Unfortunately this is a breaking change if you are referencing the struct by name, but there's too much of an overlap / confusion with the element macro CLAY_RECTANGLE, and I would like there to be a clear mental model of "rectangle means the element", so I've renamed the struct to Clay_BoundingBox, which is more in line with how it is referred to in render commands anyway.

@nicbarker nicbarker merged commit ca2c625 into main Aug 28, 2024
@nicbarker nicbarker deleted the 011-rename-rectangle-to-bounding-box branch August 28, 2024 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant