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