MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / ClearDragDrop

Method ClearDragDrop

imgui_tiny_app/imgui/imgui.cpp:15497–15511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15495}
15496
15497void ImGui::ClearDragDrop()
15498{
15499 ImGuiContext& g = *GImGui;
15500 if (g.DragDropActive)
15501 IMGUI_DEBUG_LOG_ACTIVEID("[dragdrop] ClearDragDrop()\n");
15502 g.DragDropActive = false;
15503 g.DragDropPayload.Clear();
15504 g.DragDropAcceptFlagsCurr = ImGuiDragDropFlags_None;
15505 g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0;
15506 g.DragDropAcceptIdCurrRectSurface = FLT_MAX;
15507 g.DragDropAcceptFrameCount = -1;
15508
15509 g.DragDropPayloadBufHeap.clear();
15510 memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal));
15511}
15512
15513bool ImGui::BeginTooltipHidden()
15514{

Callers

nothing calls this directly

Calls 2

ClearMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected