MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / StaticLayout

Method StaticLayout

src/openrct2/drawing/Text.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32public:
33 StaticLayout(u8string_view source, const TextPaint& paint, int32_t width)
34 : Paint(paint)
35 {
36 MaxWidth = wrapString(source, width, paint.fontStyle, &Buffer, &LineCount);
37 LineCount += 1;
38 LineHeight = FontGetLineHeight(paint.fontStyle);
39 }
40
41 void Draw(RenderTarget& rt, const ScreenCoordsXY& coords)
42 {

Callers

nothing calls this directly

Calls 2

wrapStringFunction · 0.85
FontGetLineHeightFunction · 0.85

Tested by

no test coverage detected