| 4313 | } |
| 4314 | |
| 4315 | bool BeginDragDropSourceAxis(ImAxis idx, ImGuiDragDropFlags flags) { |
| 4316 | SetupLock(); |
| 4317 | ImPlotContext& gp = *GImPlot; |
| 4318 | ImPlotAxis& axis = gp.CurrentPlot->Axes[idx]; |
| 4319 | if (GImGui->IO.KeyMods == gp.InputMap.OverrideMod || GImGui->DragDropPayload.SourceId == axis.ID) |
| 4320 | return ImGui::ItemAdd(axis.HoverRect, axis.ID) && ImGui::BeginDragDropSource(flags); |
| 4321 | return false; |
| 4322 | } |
| 4323 | |
| 4324 | bool BeginDragDropSourceItem(const char* label_id, ImGuiDragDropFlags flags) { |
| 4325 | SetupLock(); |
nothing calls this directly
no test coverage detected