mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Tests: Changed prototype of ImGuiTestEngineHook_ItemAdd to match functions called in same spot. Made ButtonBehavior submit fallback item info if ItemAdd() was not called (for resize grips, resize borders, scrollbar, columns, etc.)
This commit is contained in:
parent
8497948ba0
commit
587506dd57
3 changed files with 7 additions and 2 deletions
|
|
@ -2630,7 +2630,7 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg)
|
|||
window->DC.LastItemStatusFlags = ImGuiItemStatusFlags_None;
|
||||
|
||||
#ifdef IMGUI_ENABLE_TEST_ENGINE
|
||||
ImGuiTestEngineHook_ItemAdd(id, bb);
|
||||
ImGuiTestEngineHook_ItemAdd(bb, id);
|
||||
#endif
|
||||
|
||||
// Clipping test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue