Misc: added GetItemID() in public API.

This commit is contained in:
ocornut
2022-12-08 18:26:25 +01:00
parent 48215231f9
commit 1dae7df26f
4 changed files with 10 additions and 1 deletions

View File

@ -2794,7 +2794,6 @@ namespace ImGui
//#endif
// Basic Accessors
inline ImGuiID GetItemID() { ImGuiContext& g = *GImGui; return g.LastItemData.ID; } // Get ID of last item (~~ often same ImGui::GetID(label) beforehand)
inline ImGuiItemStatusFlags GetItemStatusFlags(){ ImGuiContext& g = *GImGui; return g.LastItemData.StatusFlags; }
inline ImGuiItemFlags GetItemFlags() { ImGuiContext& g = *GImGui; return g.LastItemData.InFlags; }
inline ImGuiID GetActiveID() { ImGuiContext& g = *GImGui; return g.ActiveId; }