| 11728 | } |
| 11729 | |
| 11730 | void ImGui::ClearDragDrop() |
| 11731 | { |
| 11732 | ImGuiContext& g = *GImGui; |
| 11733 | g.DragDropActive = false; |
| 11734 | g.DragDropPayload.Clear(); |
| 11735 | g.DragDropAcceptFlags = ImGuiDragDropFlags_None; |
| 11736 | g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0; |
| 11737 | g.DragDropAcceptIdCurrRectSurface = FLT_MAX; |
| 11738 | g.DragDropAcceptFrameCount = -1; |
| 11739 | |
| 11740 | g.DragDropPayloadBufHeap.clear(); |
| 11741 | memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal)); |
| 11742 | } |
| 11743 | |
| 11744 | // When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource() |
| 11745 | // If the item has an identifier: |