MCPcopy Create free account
hub / github.com/RIPmr/MoonEngine / RenderTextEllipsis

Method RenderTextEllipsis

ToyBox/imgui/imgui.cpp:2713–2788  ·  view source on GitHub ↗

Another overly complex function until we reorganize everything into a nice all-in-one helper. This is made more complex because we have dissociated the layout rectangle (pos_min..pos_max) which define _where_ the ellipsis is, from actual clipping of text and limit of the ellipsis display. This is because in the context of tabs we selectively hide part of the text when the Close Button appears, but

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 7

ImMaxFunction · 0.85
ImCharIsBlankAFunction · 0.85
FindGlyphMethod · 0.80
CalcTextSizeAMethod · 0.80
RenderCharMethod · 0.80
ImVec2Class · 0.70

Tested by

no test coverage detected