mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Overlap: Internals: add NextItemData.ItemFlags to facilitate implementation of SetNextItemAllowOverlap() + potentially remove extra_flags from ItemAdd(). (#6512, #3909)
This commit is contained in:
		| @@ -9438,7 +9438,7 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu | ||||
|     g.LastItemData.ID = id; | ||||
|     g.LastItemData.Rect = bb; | ||||
|     g.LastItemData.NavRect = nav_bb_arg ? *nav_bb_arg : bb; | ||||
|     g.LastItemData.InFlags = g.CurrentItemFlags | extra_flags; | ||||
|     g.LastItemData.InFlags = g.CurrentItemFlags | g.NextItemData.ItemFlags | extra_flags; | ||||
|     g.LastItemData.StatusFlags = ImGuiItemStatusFlags_None; | ||||
|  | ||||
|     // Directional navigation processing | ||||
| @@ -9470,6 +9470,7 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu | ||||
|         IM_ASSERT(id != window->ID && "Cannot have an empty ID at the root of a window. If you need an empty label, use ## and read the FAQ about how the ID Stack works!"); | ||||
|     } | ||||
|     g.NextItemData.Flags = ImGuiNextItemDataFlags_None; | ||||
|     g.NextItemData.ItemFlags = ImGuiItemFlags_None; | ||||
|  | ||||
| #ifdef IMGUI_ENABLE_TEST_ENGINE | ||||
|     if (id != 0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user