MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / ClearDragDrop

Method ClearDragDrop

ImGUI GLFW Tutorial/imgui/imgui.cpp:9750–9762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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