| 386 | } |
| 387 | |
| 388 | uint16_t TextWidget::getLineCount() const |
| 389 | { |
| 390 | uint16_t lineCount = getHeight() / m_gfxText.getFont().getHeight(); |
| 391 | |
| 392 | if (0U == lineCount) |
| 393 | { |
| 394 | lineCount = 1U; |
| 395 | } |
| 396 | |
| 397 | return lineCount; |
| 398 | } |
| 399 | |
| 400 | bool TextWidget::isStaticText(YAGfx& gfx, uint16_t textBoxWidth, uint16_t textBoxHeight) const |
| 401 | { |