| 9752 | //----------------------------------------------------------------------------- |
| 9753 | |
| 9754 | void ImGui::ClearDragDrop() |
| 9755 | { |
| 9756 | ImGuiContext& g = *GImGui; |
| 9757 | g.DragDropActive = false; |
| 9758 | g.DragDropPayload.Clear(); |
| 9759 | g.DragDropAcceptFlags = ImGuiDragDropFlags_None; |
| 9760 | g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; |
| 9761 | g.DragDropAcceptIdCurrRectSurface = FLT_MAX; |
| 9762 | g.DragDropAcceptFrameCount = -1; |
| 9763 | |
| 9764 | g.DragDropPayloadBufHeap.clear(); |
| 9765 | memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); |
| 9766 | } |
| 9767 | |
| 9768 | // When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() |
| 9769 | // If the item has an identifier: |