| 1419 | } |
| 1420 | |
| 1421 | void 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 |
| 1438 | void 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) |
no outgoing calls
no test coverage detected