| 12297 | } |
| 12298 | |
| 12299 | void ImGui::ClearDragDrop() |
| 12300 | { |
| 12301 | ImGuiContext& g = *GImGui; |
| 12302 | g.DragDropActive = false; |
| 12303 | g.DragDropPayload.Clear(); |
| 12304 | g.DragDropAcceptFlags = ImGuiDragDropFlags_None; |
| 12305 | g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; |
| 12306 | g.DragDropAcceptIdCurrRectSurface = FLT_MAX; |
| 12307 | g.DragDropAcceptFrameCount = -1; |
| 12308 | |
| 12309 | g.DragDropPayloadBufHeap.clear(); |
| 12310 | memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); |
| 12311 | } |
| 12312 | |
| 12313 | // When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() |
| 12314 | // If the item has an identifier: |