MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / ClearDragDrop

Method ClearDragDrop

lib/imgui/imgui.cpp:8932–8944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8930//-----------------------------------------------------------------------------
8931
8932void ImGui::ClearDragDrop()
8933{
8934 ImGuiContext& g = *GImGui;
8935 g.DragDropActive = false;
8936 g.DragDropPayload.Clear();
8937 g.DragDropAcceptFlags = ImGuiDragDropFlags_None;
8938 g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0;
8939 g.DragDropAcceptIdCurrRectSurface = FLT_MAX;
8940 g.DragDropAcceptFrameCount = -1;
8941
8942 g.DragDropPayloadBufHeap.clear();
8943 memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal));
8944}
8945
8946// Call when current ID is active.
8947// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource()

Callers

nothing calls this directly

Calls 2

ClearMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected