MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / RenderCheckMark

Method RenderCheckMark

3rdparty/imgui/src/imgui_draw.cpp:6042–6055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6040}
6041
6042void ImGui::RenderCheckMark(ImDrawList* draw_list, ImVec2 pos, ImU32 col, float sz)
6043{
6044 float thickness = ImMax(sz / 5.0f, 1.0f);
6045 sz -= thickness * 0.5f;
6046 pos += ImVec2(thickness * 0.25f, thickness * 0.25f);
6047
6048 float third = sz / 3.0f;
6049 float bx = pos.x + third;
6050 float by = pos.y + sz - third * 0.5f;
6051 draw_list->PathLineTo(ImVec2(bx - third, by - third));
6052 draw_list->PathLineTo(ImVec2(bx, by));
6053 draw_list->PathLineTo(ImVec2(bx + third * 2.0f, by - third * 2.0f));
6054 draw_list->PathStroke(col, thickness);
6055}
6056
6057// 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.
6058void ImGui::RenderArrowPointingAt(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, ImGuiDir direction, ImU32 col)

Callers

nothing calls this directly

Calls 4

ImMaxFunction · 0.85
PathLineToMethod · 0.80
PathStrokeMethod · 0.80
ImVec2Function · 0.50

Tested by

no test coverage detected