Codechange: Add method to guess the width/height required for a multiline string.

This is necessary for widget layouts where a minimum width is not yet known during UpdateWidgetSize().
This commit is contained in:
2023-11-20 22:27:16 +00:00
committed by Peter Nelson
parent f281525492
commit 62d4fd0572
2 changed files with 21 additions and 0 deletions

View File

@@ -262,6 +262,7 @@ public:
void SetFill(uint fill_x, uint fill_y);
void SetResize(uint resize_x, uint resize_y);
bool UpdateMultilineWidgetSize(const std::string &str, int max_lines);
bool UpdateSize(uint min_x, uint min_y);
bool UpdateVerticalSize(uint min_y);