DragDrop: Added IsDragDropActive() helper which is useful for binding to decide how to handle mouse inputs.

This commit is contained in:
omar
2017-12-28 16:54:16 +01:00
parent 563d04fdb1
commit 06bea369c0
2 changed files with 7 additions and 0 deletions

View File

@ -11478,6 +11478,12 @@ void ImGui::EndDragDropTarget()
IM_ASSERT(g.DragDropActive);
}
bool ImGui::IsDragDropActive()
{
ImGuiContext& g = *GImGui;
return g.DragDropActive;
}
//-----------------------------------------------------------------------------
// PLATFORM DEPENDENT HELPERS
//-----------------------------------------------------------------------------