Render a rectangle shaped with optional rounding and borders
| 3557 | |
| 3558 | // Render a rectangle shaped with optional rounding and borders |
| 3559 | void ImGui::RenderFrame(ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border, float rounding) |
| 3560 | { |
| 3561 | ImGuiContext& g = *GImGui; |
| 3562 | ImGuiWindow* window = g.CurrentWindow; |
| 3563 | window->DrawList->AddRectFilled(p_min, p_max, fill_col, rounding); |
| 3564 | const float border_size = g.Style.FrameBorderSize; |
| 3565 | if (border && border_size > 0.0f) |
| 3566 | { |
| 3567 | window->DrawList->AddRect(p_min + ImVec2(1, 1), p_max + ImVec2(1, 1), GetColorU32(ImGuiCol_BorderShadow), rounding, 0, border_size); |
| 3568 | window->DrawList->AddRect(p_min, p_max, GetColorU32(ImGuiCol_Border), rounding, 0, border_size); |
| 3569 | } |
| 3570 | } |
| 3571 | |
| 3572 | void ImGui::RenderFrameBorder(ImVec2 p_min, ImVec2 p_max, float rounding) |
| 3573 | { |
nothing calls this directly
no test coverage detected