MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / EndDragDropSource

Method EndDragDropSource

libs/imgui/imgui.cpp:11319–11334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11317}
11318
11319void ImGui::EndDragDropSource()
11320{
11321 ImGuiContext& g = *GImGui;
11322 IM_ASSERT(g.DragDropActive);
11323
11324 if (!(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoPreviewTooltip))
11325 {
11326 EndTooltip();
11327 PopStyleColor();
11328 //PopStyleVar();
11329 }
11330
11331 // Discard the drag if have not called SetDragDropPayload()
11332 if (g.DragDropPayload.DataFrameCount == -1)
11333 ClearDragDrop();
11334}
11335
11336// Use 'cond' to choose to submit payload on drag start or every frame
11337bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_size, ImGuiCond cond)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected