mirror of
https://github.com/adafruit/Adafruit-GFX-Library.git
synced 2024-10-03 18:18:46 -04:00
Added function getLabel() to expose the button label.
This commit is contained in:
parent
221bb41cd2
commit
95855b1a09
@ -291,6 +291,14 @@ public:
|
||||
/**********************************************************************/
|
||||
bool isPressed(void) { return currstate; };
|
||||
|
||||
/**********************************************************************/
|
||||
/*!
|
||||
@brief Get the label text
|
||||
@returns the const char pointer of the buttoś label
|
||||
*/
|
||||
/**********************************************************************/
|
||||
char *getLabel(void) const { return _label; };
|
||||
|
||||
private:
|
||||
Adafruit_GFX *_gfx;
|
||||
int16_t _x1, _y1; // Coordinates of top-left corner
|
||||
|
Loading…
Reference in New Issue
Block a user