fix multiline width calculation & feat: multiline tooltips support

This commit is contained in:
MihailRis
2025-03-13 22:07:10 +03:00
parent 4400f7fbfb
commit 5394f202a1
5 changed files with 37 additions and 8 deletions
+2 -1
View File
@@ -18,9 +18,10 @@ namespace gui {
/// @brief Reset cache flag
bool resetFlag = true;
size_t wrapWidth = -1;
int multilineWidth = 0;
void prepare(Font* font, size_t wrapWidth);
void update(const std::wstring& text, bool multiline, bool wrap);
void update(std::wstring_view text, bool multiline, bool wrap);
size_t getTextLineOffset(size_t line) const;
uint getLineByTextIndex(size_t index) const;