MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / getLineCount

Method getLineCount

lib/YAWidgets/src/TextWidget.cpp:388–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386}
387
388uint16_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
400bool TextWidget::isStaticText(YAGfx& gfx, uint16_t textBoxWidth, uint16_t textBoxHeight) const
401{

Callers

nothing calls this directly

Calls 1

getHeightMethod · 0.45

Tested by

no test coverage detected