Codechange: Move GetCharPosInString/GetCharAtPosition to gfx_layout.
These functions are related more to layouting than graphics.
This commit is contained in:
committed by
Peter Nelson
parent
bbbf2b5282
commit
80ddcb9d7d
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user