MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / AddLine

Method AddLine

KBotExt/imgui/imgui_draw.cpp:1378–1385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1376}
1377
1378void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness)
1379{
1380 if ((col & IM_COL32_A_MASK) == 0)
1381 return;
1382 PathLineTo(p1 + ImVec2(0.5f, 0.5f));
1383 PathLineTo(p2 + ImVec2(0.5f, 0.5f));
1384 PathStroke(col, 0, thickness);
1385}
1386
1387// p_min = upper-left, p_max = lower-right
1388// Note we don't render 1 pixels sized rectangles properly.

Callers 15

AddUnderLineFunction · 0.80
TableEndRowMethod · 0.80
TableDrawBordersMethod · 0.80
EndColumnsMethod · 0.80
DebugNodeTabBarMethod · 0.80
DebugDrawCursorPosMethod · 0.80
DebugDrawLineExtentsMethod · 0.80
CloseButtonMethod · 0.80
SeparatorTextExMethod · 0.80

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected