* Calculates number of lines of string. The string is changed to a multiline string if needed. * @param str string to check * @param maxw maximum string width * @return number of lines of string when it is drawn */
| 737 | * @return number of lines of string when it is drawn |
| 738 | */ |
| 739 | int GetStringLineCount(std::string_view str, int maxw) |
| 740 | { |
| 741 | Layouter layout(str, maxw); |
| 742 | return (uint)layout.size(); |
| 743 | } |
| 744 | |
| 745 | /** |
| 746 | * Calculate string bounding box for multi-line strings. |
no test coverage detected