| 96 | } |
| 97 | |
| 98 | void drawTitle(float scale = 1) { |
| 99 | int titleY = iconCenterY + iconAreaH / 2 + FG; |
| 100 | |
| 101 | tft.setTextSize(FM); |
| 102 | tft.drawPixel(0, 0, 0); |
| 103 | tft.fillRect(arrowAreaX, titleY, tftWidth - 2 * arrowAreaX, LH * FM, bruceConfig.bgColor); |
| 104 | int nchars = (tftWidth - 16) / (LW * FM); |
| 105 | tft.drawCentreString(getName().substring(0, nchars), iconCenterX, titleY, 1); |
| 106 | } |
| 107 | |
| 108 | protected: |
| 109 | String _name = ""; |
nothing calls this directly
no test coverage detected