diff --git a/Adafruit_GFX.h b/Adafruit_GFX.h index 63c6ab68..bc2b2d6e 100644 --- a/Adafruit_GFX.h +++ b/Adafruit_GFX.h @@ -271,6 +271,9 @@ class Adafruit_GFX_Button { uint8_t textsize_y); void drawButton(bool inverted = false); bool contains(int16_t x, int16_t y); + // Public methods to access button label to reuse the Button object. + char* getLabel() { return _label;} + void setLabel(char* label) {strncpy(_label, label, 9);_label[9]=0;} /**********************************************************************/ /*!