Add getCursorX() and getCursorY() functions

As requested in Issue #79

Function names are compatible with Adafruit_GFX

Also trimmed out duplicate keywords
This commit is contained in:
Bodmer
2018-01-26 15:19:40 +00:00
parent 26c4cac3c9
commit 6c993f8fd2
3 changed files with 24 additions and 6 deletions
+19
View File
@@ -1525,6 +1525,25 @@ void TFT_eSPI::setCursor(int16_t x, int16_t y, uint8_t font)
}
/***************************************************************************************
** Function name: getCursorX
** Description: Get the text cursor x position
***************************************************************************************/
int16_t TFT_eSPI::getCursorX(void)
{
return cursor_x;
}
/***************************************************************************************
** Function name: getCursorY
** Description: Get the text cursor y position
***************************************************************************************/
int16_t TFT_eSPI::getCursorY(void)
{
return cursor_y;
}
/***************************************************************************************
** Function name: setTextSize
** Description: Set the text size multiplier