Style: add ImGuiStyleVar{TabBorderSize,TableAngledHeadersAngle}
#7411
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These two are not accessible via the mid-frame safe
Push/PopStyleVar
API.TabBarBorderSize
recently got its own StyleVar so it's strange that the olderTabBorderSize
doesn't have one. Temporarily overriding the newTableAngledHeadersAngle
per-table seems useful.The lack of StyleVar for some style fields has an impact in my custom bindings:
Push/PopStyleVar
is the only way users are allowed to edit styles mid-frame as direct memory access is not a thing in scripting languages and I limit it to "safe" APIs, obeying the comments in imgui.h:Speaking of which, and considering that comment, the new Behaviors style fields for tooltips seem a bit out of place in ImGuiStyle with direct memory access mid-frame being the only way to edit them and a comment directly contradicting the previous one:
Yet there is no corresponding comment around ImGuiIO about mid-frame writes being no-go, and the demo happily directly writes to both ImGuiIO and ImGuiStyle mid-frame... What are the actual rules? Should I add a check in my bindings so that ImGuiIO values are only writable before a frame? Some of them are useful mid-frame, like changing
InputTextEnterKeepActive
per text field.