| 1393 | } |
| 1394 | |
| 1395 | void 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 |
| 1412 | 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