Codechange: Move GetCharPosInString/GetCharAtPosition to gfx_layout.

These functions are related more to layouting than graphics.
This commit is contained in:
Peter Nelson
2024-06-01 22:37:46 +01:00
committed by Peter Nelson
parent bbbf2b5282
commit 80ddcb9d7d
7 changed files with 39 additions and 35 deletions

View File

@@ -142,8 +142,6 @@ int GetStringLineCount(StringID str, int maxw);
Dimension GetStringMultiLineBoundingBox(StringID str, const Dimension &suggestion);
Dimension GetStringMultiLineBoundingBox(std::string_view str, const Dimension &suggestion);
void LoadStringWidthTable(bool monospace = false);
Point GetCharPosInString(std::string_view str, const char *ch, FontSize start_fontsize = FS_NORMAL);
ptrdiff_t GetCharAtPosition(std::string_view str, int x, FontSize start_fontsize = FS_NORMAL);
void DrawDirtyBlocks();
void AddDirtyBlock(int left, int top, int right, int bottom);