| 10915 | //----------------------------------------------------------------------------- |
| 10916 | |
| 10917 | void ImGui::ClearDragDrop() |
| 10918 | { |
| 10919 | ImGuiContext& g = *GImGui; |
| 10920 | g.DragDropActive = false; |
| 10921 | g.DragDropPayload.Clear(); |
| 10922 | g.DragDropAcceptFlags = ImGuiDragDropFlags_None; |
| 10923 | g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; |
| 10924 | g.DragDropAcceptIdCurrRectSurface = FLT_MAX; |
| 10925 | g.DragDropAcceptFrameCount = -1; |
| 10926 | |
| 10927 | g.DragDropPayloadBufHeap.clear(); |
| 10928 | memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); |
| 10929 | } |
| 10930 | |
| 10931 | // When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() |
| 10932 | // If the item has an identifier: |