MCPcopy Create free account
hub / github.com/RenderKit/embree / AddRectFilled

Method AddRectFilled

tutorials/common/imgui/imgui_draw.cpp:1395–1409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1393}
1394
1395void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags)
1396{
1397 if ((col & IM_COL32_A_MASK) == 0)
1398 return;
1399 if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone)
1400 {
1401 PrimReserve(6, 4);
1402 PrimRect(p_min, p_max, col);
1403 }
1404 else
1405 {
1406 PathRect(p_min, p_max, rounding, flags);
1407 PathFillConvex(col);
1408 }
1409}
1410
1411// p_min = upper-left, p_max = lower-right
1412void 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
ShowMetricsWindowMethod · 0.80
ScrollbarExMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected