| 938 | } |
| 939 | |
| 940 | float TextBox::get_width() { |
| 941 | rebuild(); |
| 942 | float toRet = 0.0f; |
| 943 | for(auto& p : paragraphs) |
| 944 | toRet = std::max(toRet, p.p->getLongestLine()); |
| 945 | toRet += 1.0f; |
| 946 | return toRet; |
| 947 | } |
| 948 | |
| 949 | float TextBox::get_height() { |
| 950 | rebuild(); |