MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / ClearDragDrop

Method ClearDragDrop

extern/imgui/imgui.cpp:12466–12478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12464}
12465
12466void 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:

Callers

nothing calls this directly

Calls 2

ClearMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected