MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ClearDragDrop

Method ClearDragDrop

KBotExt/imgui/imgui.cpp:12299–12311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12297}
12298
12299void 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:

Callers

nothing calls this directly

Calls 2

ClearMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected