MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / AddLine

Method AddLine

external/imgui/imgui_draw.cpp:1479–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1477}
1478
1479void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness)
1480{
1481 if ((col & IM_COL32_A_MASK) == 0)
1482 return;
1483 const ImVec2 points[2] = { ImVec2(p1.x + 0.5f, p1.y + 0.5f), ImVec2(p2.x + 0.5f, p2.y + 0.5f) };
1484 AddPolyline(points, 2, col, thickness);
1485}
1486
1487void ImDrawList::AddLineH(float min_x, float max_x, float y, ImU32 col, float thickness)
1488{

Callers 11

draw_keyFunction · 0.80
imgui_osk_renderFunction · 0.80
AmigaBevelFunction · 0.80
run_guiFunction · 0.80
CloseButtonMethod · 0.80
PlotExMethod · 0.80
TabItemExMethod · 0.80
DemoWindowInputsFunction · 0.80

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected