| 869 | } |
| 870 | |
| 871 | std::shared_ptr<TextParse::Text> Gui::parseText( |
| 872 | const std::string& str, FontSize size, float maxWidth) |
| 873 | { |
| 874 | static_assert(std::is_same<FontSize, float>::value); |
| 875 | maxWidth /= size; |
| 876 | return textBuffer->parse(str, maxWidth); |
| 877 | } |
| 878 | |
| 879 | void Gui::text(std::shared_ptr<TextParse::Text> text, float x, float y, FontSize sizeX, |
| 880 | FontSize sizeY, PKSM_Color color, TextPosX positionX, TextPosY positionY) |