1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Added GetItemFlags() in public API. (#9127)

This commit is contained in:
ocornut 2025-12-22 18:33:12 +01:00
parent 9055c9ed22
commit 0ff810038d
4 changed files with 11 additions and 3 deletions

View file

@ -6330,6 +6330,12 @@ ImVec2 ImGui::GetItemRectSize()
return g.LastItemData.Rect.GetSize();
}
ImGuiItemFlags ImGui::GetItemFlags()
{
ImGuiContext& g = *GImGui;
return g.LastItemData.ItemFlags;
}
// Prior to v1.90 2023/10/16, the BeginChild() function took a 'bool border = false' parameter instead of 'ImGuiChildFlags child_flags = 0'.
// ImGuiChildFlags_Borders is defined as always == 1 in order to allow old code passing 'true'. Read comments in imgui.h for details!
bool ImGui::BeginChild(const char* str_id, const ImVec2& size_arg, ImGuiChildFlags child_flags, ImGuiWindowFlags window_flags)