forked from mirror/OpenTTD
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:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user