| 68 | } |
| 69 | |
| 70 | void CanvasWidget::drawText(String s, TextPositioning position, unsigned fontSize, Vec4B const& color, FontMode mode, float lineSpacing, String font, String processingDirectives) { |
| 71 | TextStyle style; |
| 72 | style.fontSize = fontSize; |
| 73 | style.color = color; |
| 74 | style.shadow = fontModeToColor(mode).toRgba(); |
| 75 | style.lineSpacing = lineSpacing; |
| 76 | style.font = font; |
| 77 | style.directives = processingDirectives; |
| 78 | m_renderOps.append(make_tuple(std::move(s), std::move(position), std::move(style))); |
| 79 | } |
| 80 | |
| 81 | void CanvasWidget::drawText(String s, TextPositioning position, TextStyle style) { |
| 82 | m_renderOps.append(make_tuple(std::move(s), std::move(position), std::move(style))); |
no test coverage detected