MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / ClearDragDrop

Method ClearDragDrop

core/src/imgui/imgui.cpp:9754–9766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9752//-----------------------------------------------------------------------------
9753
9754void ImGui::ClearDragDrop()
9755{
9756 ImGuiContext& g = *GImGui;
9757 g.DragDropActive = false;
9758 g.DragDropPayload.Clear();
9759 g.DragDropAcceptFlags = ImGuiDragDropFlags_None;
9760 g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0;
9761 g.DragDropAcceptIdCurrRectSurface = FLT_MAX;
9762 g.DragDropAcceptFrameCount = -1;
9763
9764 g.DragDropPayloadBufHeap.clear();
9765 memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal));
9766}
9767
9768// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource()
9769// 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