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

Method AddRectFilled

KBotExt/imgui/imgui_draw.cpp:1400–1414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1398}
1399
1400void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags)
1401{
1402 if ((col & IM_COL32_A_MASK) == 0)
1403 return;
1404 if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone)
1405 {
1406 PrimReserve(6, 4);
1407 PrimRect(p_min, p_max, col);
1408 }
1409 else
1410 {
1411 PathRect(p_min, p_max, rounding, flags);
1412 PathFillConvex(col);
1413 }
1414}
1415
1416// p_min = upper-left, p_max = lower-right
1417void ImDrawList::AddRectFilledMultiColor(const ImVec2& p_min, const ImVec2& p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left)

Callers 15

ComboAutoSelectComplexFunction · 0.80
TableEndRowMethod · 0.80
RenderFrameMethod · 0.80
NavScoreItemMethod · 0.80
ShowMetricsWindowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected