Functions for calculating the width in advance #4114
0lru
announced in
Old/Archived discussions
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I'm trying to create a decent layout system among other things:
https://github.com/0lru/oogui. Please have a look at the second example of the Readme.md.
However, in CSS we have:
flex-basis: auto
. This would require calculating the withof any widget in advance as well as the height. Looking at the code of ImGUI this should
be doable.
Would it be possible to add? Maybe something like this (pseudocode):
Looking at the code, the rest of it is already implemented, since one can get the bounds
of the last item created.
Beta Was this translation helpful? Give feedback.
All reactions