| 2541 | } |
| 2542 | |
| 2543 | void ImGui::RenderCheckMark(ImVec2 pos, ImU32 col, float sz) |
| 2544 | { |
| 2545 | ImGuiContext& g = *GImGui; |
| 2546 | ImGuiWindow* window = g.CurrentWindow; |
| 2547 | |
| 2548 | float thickness = ImMax(sz / 5.0f, 1.0f); |
| 2549 | sz -= thickness*0.5f; |
| 2550 | pos += ImVec2(thickness*0.25f, thickness*0.25f); |
| 2551 | |
| 2552 | float third = sz / 3.0f; |
| 2553 | float bx = pos.x + third; |
| 2554 | float by = pos.y + sz - third*0.5f; |
| 2555 | window->DrawList->PathLineTo(ImVec2(bx - third, by - third)); |
| 2556 | window->DrawList->PathLineTo(ImVec2(bx, by)); |
| 2557 | window->DrawList->PathLineTo(ImVec2(bx + third*2, by - third*2)); |
| 2558 | window->DrawList->PathStroke(col, false, thickness); |
| 2559 | } |
| 2560 | |
| 2561 | void ImGui::RenderNavHighlight(const ImRect& bb, ImGuiID id, ImGuiNavHighlightFlags flags) |
| 2562 | { |
nothing calls this directly
no test coverage detected