| 2007 | } |
| 2008 | |
| 2009 | Ui::Point TextRenderer::drawStringCentred(Ui::Point origin, AdvancedColour colour, StringId stringId, FormatArgumentsView args /* = {}*/) |
| 2010 | { |
| 2011 | auto& rt = _ctx.currentRenderTarget(); |
| 2012 | |
| 2013 | TextDrawingState drawState; |
| 2014 | drawState.font = _currentFontSpriteBase; |
| 2015 | drawState.fontFlags = _currentFontFlags; |
| 2016 | |
| 2017 | return Impl::drawStringCentred(drawState, _ctx, rt, origin, colour, stringId, args); |
| 2018 | } |
| 2019 | |
| 2020 | Ui::Point TextRenderer::drawStringCentredClipped(Ui::Point origin, uint16_t width, AdvancedColour colour, StringId stringId, FormatArgumentsView args /* = {}*/) |
| 2021 | { |
no test coverage detected