MCPcopy Create free account
hub / github.com/RenderKit/embree / ClearDragDrop

Method ClearDragDrop

tutorials/common/imgui/imgui.cpp:11730–11742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11728}
11729
11730void ImGui::ClearDragDrop()
11731{
11732 ImGuiContext& g = *GImGui;
11733 g.DragDropActive = false;
11734 g.DragDropPayload.Clear();
11735 g.DragDropAcceptFlags = ImGuiDragDropFlags_None;
11736 g.DragDropAcceptIdCurr = g.DragDropAcceptIdPrev = 0;
11737 g.DragDropAcceptIdCurrRectSurface = FLT_MAX;
11738 g.DragDropAcceptFrameCount = -1;
11739
11740 g.DragDropPayloadBufHeap.clear();
11741 memset(&g.DragDropPayloadBufLocal, 0, sizeof(g.DragDropPayloadBufLocal));
11742}
11743
11744// When this returns true you need to: a) call SetDragDropPayload() exactly once, b) you may render the payload visual/description, c) call EndDragDropSource()
11745// 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