| 2018 | } |
| 2019 | |
| 2020 | Ui::Point TextRenderer::drawStringCentredClipped(Ui::Point origin, uint16_t width, AdvancedColour colour, StringId stringId, FormatArgumentsView args /* = {}*/) |
| 2021 | { |
| 2022 | auto& rt = _ctx.currentRenderTarget(); |
| 2023 | |
| 2024 | TextDrawingState drawState; |
| 2025 | drawState.font = _currentFontSpriteBase; |
| 2026 | drawState.fontFlags = _currentFontFlags; |
| 2027 | |
| 2028 | return Impl::drawStringCentredClipped(drawState, _ctx, rt, origin, width, colour, stringId, args); |
| 2029 | } |
| 2030 | |
| 2031 | Ui::Point TextRenderer::drawStringCentredRaw(Ui::Point origin, uint16_t linebreakCount, AdvancedColour colour, const char* wrappedStr) |
| 2032 | { |
no test coverage detected