Compare commits

...

3 Commits

Author SHA1 Message Date
egonza1661
103b3e1947
Merge 09feb78a57 into 126007f2c5 2023-11-27 17:48:37 +01:00
Eduardo Gonzalez
09feb78a57 Fixed warning const char* on return value 2021-04-11 14:55:40 -03:00
Eduardo Gonzalez
95855b1a09 Added function getLabel() to expose the button label. 2021-04-05 21:10:30 -03:00

View File

@ -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