MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / AddRectFilled

Method AddRectFilled

TheForceEngine/TFE_Ui/imGUI/imgui_draw.cpp:1421–1435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1419}
1420
1421void ImDrawList::AddRectFilled(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags)
1422{
1423 if ((col & IM_COL32_A_MASK) == 0)
1424 return;
1425 if (rounding < 0.5f || (flags & ImDrawFlags_RoundCornersMask_) == ImDrawFlags_RoundCornersNone)
1426 {
1427 PrimReserve(6, 4);
1428 PrimRect(p_min, p_max, col);
1429 }
1430 else
1431 {
1432 PathRect(p_min, p_max, rounding, flags);
1433 PathFillConvex(col);
1434 }
1435}
1436
1437// p_min = upper-left, p_max = lower-right
1438void 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

ImageAnimButtonFunction · 0.80
ImageButtonDualTintFunction · 0.80
TableEndRowMethod · 0.80
RenderFrameMethod · 0.80
NavScoreItemMethod · 0.80
ShowMetricsWindowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected