| 8930 | //----------------------------------------------------------------------------- |
| 8931 | |
| 8932 | void ImGui::ClearDragDrop() |
| 8933 | { |
| 8934 | ImGuiContext& g = *GImGui; |
| 8935 | g.DragDropActive = false; |
| 8936 | g.DragDropPayload.Clear(); |
| 8937 | g.DragDropAcceptFlags = ImGuiDragDropFlags_None; |
| 8938 | g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; |
| 8939 | g.DragDropAcceptIdCurrRectSurface = FLT_MAX; |
| 8940 | g.DragDropAcceptFrameCount = -1; |
| 8941 | |
| 8942 | g.DragDropPayloadBufHeap.clear(); |
| 8943 | memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); |
| 8944 | } |
| 8945 | |
| 8946 | // Call when current ID is active. |
| 8947 | // When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() |