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

@@ -185,4 +185,7 @@ public:
static void ReduceLineCache();
};
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);
#endif /* GFX_LAYOUT_H */