MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / AddLine

Method AddLine

lib/imgui/imgui_draw.cpp:1003–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001}
1002
1003void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness)
1004{
1005 if ((col & IM_COL32_A_MASK) == 0)
1006 return;
1007 PathLineTo(p1 + ImVec2(0.5f, 0.5f));
1008 PathLineTo(p2 + ImVec2(0.5f, 0.5f));
1009 PathStroke(col, false, thickness);
1010}
1011
1012// p_min = upper-left, p_max = lower-right
1013// Note we don't render 1 pixels sized rectangles properly.

Callers 11

CloseButtonMethod · 0.80
SeparatorExMethod · 0.80
InputTextExMethod · 0.80
PlotExMethod · 0.80
BeginTabBarExMethod · 0.80
EndColumnsMethod · 0.80
ShowDemoWindowMiscFunction · 0.80
UnderLineFunction · 0.80

Calls 1

ImVec2Class · 0.85

Tested by

no test coverage detected