| 80 | } |
| 81 | |
| 82 | void TextComponent::calculateExtent() |
| 83 | { |
| 84 | std::shared_ptr<Font> font = getFont(); |
| 85 | |
| 86 | if(mAutoCalcExtent.x()) |
| 87 | { |
| 88 | mSize = font->sizeText(mText); |
| 89 | }else{ |
| 90 | if(mAutoCalcExtent.y()) |
| 91 | { |
| 92 | mSize[1] = font->sizeWrappedText(mText, getSize().x()).y(); |
| 93 | } |
| 94 | } |
| 95 | } |
nothing calls this directly
no test coverage detected