MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / CountRuns

Method CountRuns

src/gfx_layout_fallback.cpp:174–177  ·  view source on GitHub ↗

* Get the number of runs in this line. * @return The number of runs. */

Source from the content-addressed store, hash-verified

172 * @return The number of runs.
173 */
174int FallbackParagraphLayout::FallbackLine::CountRuns() const
175{
176 return (uint)this->size();
177}
178
179/**
180 * Get a specific visual run.

Callers 4

GetWidthMethod · 0.95
DrawLayoutLineFunction · 0.45
GetCharPositionMethod · 0.45
GetCharAtPositionMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected