| 12464 | } |
| 12465 | |
| 12466 | void ImGui::ClearDragDrop() |
| 12467 | { |
| 12468 | ImGuiContext& g = *GImGui; |
| 12469 | g.DragDropActive = false; |
| 12470 | g.DragDropPayload.Clear(); |
| 12471 | g.DragDropAcceptFlags = ImGuiDragDropFlags_None; |
| 12472 | g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; |
| 12473 | g.DragDropAcceptIdCurrRectSurface = FLT_MAX; |
| 12474 | g.DragDropAcceptFrameCount = -1; |
| 12475 | |
| 12476 | g.DragDropPayloadBufHeap.clear(); |
| 12477 | memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); |
| 12478 | } |
| 12479 | |
| 12480 | // When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() |
| 12481 | // If the item has an identifier: |