| 3788 | } |
| 3789 | |
| 3790 | void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz) |
| 3791 | { |
| 3792 | float thickness = ImMax(sz / 5.0f, 1.0f); |
| 3793 | sz -= thickness * 0.5f; |
| 3794 | pos += ImVec2(thickness * 0.25f, thickness * 0.25f); |
| 3795 | |
| 3796 | float third = sz / 3.0f; |
| 3797 | float bx = pos.x + third; |
| 3798 | float by = pos.y + sz - third * 0.5f; |
| 3799 | draw_list->PathLineTo(ImVec2(bx - third, by - third)); |
| 3800 | draw_list->PathLineTo(ImVec2(bx, by)); |
| 3801 | draw_list->PathLineTo(ImVec2(bx + third * 2.0f, by - third * 2.0f)); |
| 3802 | draw_list->PathStroke(col, 0, thickness); |
| 3803 | } |
| 3804 | |
| 3805 | // Render an arrow. 'pos' is position of the arrow tip. half_sz.x is length from base to tip. half_sz.y is length on each side. |
| 3806 | void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col) |
nothing calls this directly
no test coverage detected