| 11317 | } |
| 11318 | |
| 11319 | void 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 |
| 11337 | bool ImGui::SetDragDropPayload(const char* type, const void* data, size_t data_size, ImGuiCond cond) |
nothing calls this directly
no outgoing calls
no test coverage detected