MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / RenderTextWrapped

Method RenderTextWrapped

Source/ThirdParty/imgui/imgui.cpp:2565–2579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2563}
2564
2565void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width)
2566{
2567 ImGuiContext& g = *GImGui;
2568 ImGuiWindow* window = g.CurrentWindow;
2569
2570 if (!text_end)
2571 text_end = text + strlen(text); // FIXME-OPT
2572
2573 if (text != text_end)
2574 {
2575 window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width);
2576 if (g.LogEnabled)
2577 LogRenderedText(&pos, text, text_end);
2578 }
2579}
2580
2581// Default clip_rect uses (pos_min,pos_max)
2582// Handle clipping on CPU immediately (vs typically let the GPU clip the triangles that are overlapping the clipping rectangle edges)

Callers

nothing calls this directly

Calls 1

AddTextMethod · 0.80

Tested by

no test coverage detected