** Code for the GFX button UI element ** Grabbed from Adafruit_GFX library and enhanced to handle any label font ***************************************************************************************/
| 3 | ** Grabbed from Adafruit_GFX library and enhanced to handle any label font |
| 4 | ***************************************************************************************/ |
| 5 | TFT_eSPI_Button::TFT_eSPI_Button(void) { |
| 6 | _gfx = nullptr; |
| 7 | _xd = 0; |
| 8 | _yd = 0; |
| 9 | _textdatum = MC_DATUM; |
| 10 | _label[9] = '\0'; |
| 11 | currstate = false; |
| 12 | laststate = false; |
| 13 | } |
| 14 | |
| 15 | // Classic initButton() function: pass center & size |
| 16 | void TFT_eSPI_Button::initButton( |
nothing calls this directly
no outgoing calls
no test coverage detected