diff --git a/Adafruit_GFX.h b/Adafruit_GFX.h index 63c6ab6..70fad45 100644 --- a/Adafruit_GFX.h +++ b/Adafruit_GFX.h @@ -294,6 +294,14 @@ public: /**********************************************************************/ bool isPressed(void) { return currstate; }; + /**********************************************************************/ + /*! + @brief Get the label text + @returns the const char pointer of the buttoĊ› label + */ + /**********************************************************************/ + const char *getLabel(void) const { return _label; }; + private: Adafruit_GFX *_gfx; int16_t _x1, _y1; // Coordinates of top-left corner