MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / AddRectFilled

Method AddRectFilled

extern/imgui/imgui_draw.cpp:1404–1418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1402}
1403
1404void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags)
1405{
1406 if ((col & IM_COL32_A_MASK) == 0)
1407 return;
1408 if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone)
1409 {
1410 PrimReserve(6, 4);
1411 PrimRect(p_min, p_max, col);
1412 }
1413 else
1414 {
1415 PathRect(p_min, p_max, rounding, flags);
1416 PathFillConvex(col);
1417 }
1418}
1419
1420// p_min = upper-left, p_max = lower-right
1421void 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

TableEndRowMethod · 0.80
RenderFrameMethod · 0.80
NavScoreItemMethod · 0.80
DockContextEndFrameMethod · 0.80
DockNodeUpdateMethod · 0.80
DockNodeUpdateTabBarMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected