Conversation
…onpe/bevy into uirect_vertical_horizontal
UiRect that sets the vertical and horizontal fields to uniform values
alice-i-cecile
left a comment
There was a problem hiding this comment.
LGTM but I'm similarly unhappy with that name.
uniform_axes is better, but not great. xy is very terse but not super clear. paired_axes or matching_axes isn't any better.
What about UiRect::symmetric(horizontal, vertical)?
|
I'm not sure about |
|
Part of the problem is like |
#shipit 🚀 🚀 😎 Can we split out the different uses of
|
I also recently thought that the the name does not describe what the |
|
I really hate the name Maybe |
|
I like |
I thought about the name Another option is to have separate types At the moment the |
|
I like As for the type question, I like |
|
Definitely |
UiRect that sets the vertical and horizontal fields to uniform valuesUiRect axes constructor
|
This is ready to be merged I think. |
Objective
We don't have a constructor function for
UiRectthat sets uniform horizontal and vertical values, even though it is a common pattern.Solution
Add a constructor function to
UiRectcalledaxes, that sets bothleftandrightto the same given horizontal value,and sets both
topandbottomto same given vertical value.Changelog
axestoUiRect.