MCPcopy Create free account
hub / github.com/ddnet/ddnet / TextBoundingBox

Method TextBoundingBox

src/engine/client/text.cpp:1376–1385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1374 }
1375
1376 STextBoundingBox TextBoundingBox(float FontSize, const char *pText, int StrLength = -1, float LineWidth = -1.0f, float LineSpacing = 0.0f, int Flags = 0) override
1377 {
1378 CTextCursor Cursor;
1379 Cursor.m_FontSize = FontSize;
1380 Cursor.m_Flags = Flags;
1381 Cursor.m_LineWidth = LineWidth;
1382 Cursor.m_LineSpacing = LineSpacing;
1383 TextEx(&Cursor, pText, StrLength);
1384 return Cursor.BoundingBox();
1385 }
1386
1387 void TextColor(float r, float g, float b, float a) override
1388 {

Callers 6

RenderMethod · 0.80
PopupSelectionMethod · 0.80
ShowPopupSelectionMethod · 0.80
OnRenderMethod · 0.80
OnRenderMethod · 0.80

Calls 1

BoundingBoxMethod · 0.80

Tested by

no test coverage detected