Removed 'bool border' legacy versions of BeginChild() as they seemingly have no value other than confusing user and IDE.

Amend 7713c29 (was for #1666, #1496, #1395, #1710)
This commit is contained in:
ocornut
2023-11-10 16:03:19 +01:00
parent 44dbad64d7
commit 454f36d2af
2 changed files with 10 additions and 5 deletions

View File

@ -51,7 +51,7 @@ Breaking changes:
After: BeginChild("Name", size, ImGuiChildFlags_Border)
Before: BeginChild("Name", size, false)
After: BeginChild("Name", size) or BeginChild("Name", 0) or BeginChild("Name", size, ImGuiChildFlags_None)
Kept inline redirection function (will obsolete later) so existing code will work.
Existing code will still work as 'ImGuiChildFlags_Border == true', but you are encouraged to upgrade.
- BeginChild(): Added child-flag ImGuiChildFlags_AlwaysUseWindowPadding as a replacement for
the window-flag ImGuiWindowFlags_AlwaysUseWindowPadding: the feature only ever made sense
for use with BeginChild() anyhow, passing it to Begin() had no effect. Now that we accept