Minor refactor in LineWrap.

This commit is contained in:
Martín Lucas Golini
2026-01-23 21:48:10 -03:00
parent 403a06cee4
commit 409cda3ba5
3 changed files with 63 additions and 33 deletions

View File

@@ -32,12 +32,22 @@ class EE_API LineWrap {
Uint32 textHints = TextHints::None, bool tabStops = false,
Float initialXOffset = 0.f );
static LineWrapInfo computeLineBreaks(
const String::View& string, Font* font, Uint32 characterSize, Float maxWidth,
LineWrapMode mode, Uint32 fontStyle, Float outlineThickness, bool keepIndentation,
Uint32 tabWidth = 4, Float whiteSpaceWidth = 0.f /* 0 = should calculate it */,
Uint32 textHints = TextHints::None, bool tabStops = false, Float initialXOffset = 0.f );
static LineWrapInfo computeLineBreaks( const String& string, const FontStyleConfig& fontStyle,
Float maxWidth, LineWrapMode mode, bool keepIndentation,
Uint32 tabWidth = 4, Float whiteSpaceWidth = 0.f,
Uint32 textHints = TextHints::None,
bool tabStops = false, Float initialXOffset = 0.f );
static Float computeOffsets( const String::View& string, Font* font, Uint32 characterSize,
Uint32 fontStyle, Float outlineThickness, Uint32 tabWidth = 0.f,
Float maxWidth = 0.f, bool tabStops = false );
static Float computeOffsets( const String::View& string, const FontStyleConfig& fontStyle,
Uint32 tabWidth, Float maxWidth = 0.f, bool tabStops = false );
};