MCPcopy Create free account
hub / github.com/Raais/ImStudio / ClearDragDrop

Method ClearDragDrop

src/third-party/imgui/imgui.cpp:10917–10929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10915//-----------------------------------------------------------------------------
10916
10917void ImGui::ClearDragDrop()
10918{
10919 ImGuiContext& g = *GImGui;
10920 g.DragDropActive = false;
10921 g.DragDropPayload.Clear();
10922 g.DragDropAcceptFlags = ImGuiDragDropFlags_None;
10923 g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0;
10924 g.DragDropAcceptIdCurrRectSurface = FLT_MAX;
10925 g.DragDropAcceptFrameCount = -1;
10926
10927 g.DragDropPayloadBufHeap.clear();
10928 memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal));
10929}
10930
10931// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource()
10932// 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