Tables: amend f799a29 with a better solution + fix potential overflow (#6140)

This commit is contained in:
ocornut
2023-02-03 22:50:43 +01:00
parent ea39841fcd
commit d6ea56dfd9
3 changed files with 11 additions and 3 deletions

View File

@ -2802,6 +2802,7 @@ namespace ImGui
IMGUI_API void MarkItemEdited(ImGuiID id); // Mark data associated to given item as "edited", used by IsItemDeactivatedAfterEdit() function.
IMGUI_API void PushOverrideID(ImGuiID id); // Push given value as-is at the top of the ID stack (whereas PushID combines old and new hashes)
IMGUI_API ImGuiID GetIDWithSeed(const char* str_id_begin, const char* str_id_end, ImGuiID seed);
IMGUI_API ImGuiID GetIDWithSeed(int n, ImGuiID seed);
// Basic Helpers for widget code
IMGUI_API void ItemSize(const ImVec2& size, float text_baseline_y = -1.0f);