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

Function BeginDragDropSourcePlot

src/external/imgui/implot.cpp:4306–4313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4304}
4305
4306bool BeginDragDropSourcePlot(ImGuiDragDropFlags flags) {
4307 SetupLock();
4308 ImPlotContext& gp = *GImPlot;
4309 ImPlotPlot* plot = gp.CurrentPlot;
4310 if (GImGui->IO.KeyMods == gp.InputMap.OverrideMod || GImGui->DragDropPayload.SourceId == plot->ID)
4311 return ImGui::ItemAdd(plot->PlotRect, plot->ID) && ImGui::BeginDragDropSource(flags);
4312 return false;
4313}
4314
4315bool BeginDragDropSourceAxis(ImAxis idx, ImGuiDragDropFlags flags) {
4316 SetupLock();

Callers

nothing calls this directly

Calls 1

SetupLockFunction · 0.85

Tested by

no test coverage detected