MCPcopy Create free account
hub / github.com/clementgallet/libTAS / BeginDragDropSourceAxis

Function BeginDragDropSourceAxis

src/external/imgui/implot.cpp:4315–4322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4313}
4314
4315bool 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
4324bool BeginDragDropSourceItem(const char* label_id, ImGuiDragDropFlags flags) {
4325 SetupLock();

Callers

nothing calls this directly

Calls 1

SetupLockFunction · 0.85

Tested by

no test coverage detected