This commit is contained in:
egonza1661 2024-10-02 01:20:43 +05:30 committed by GitHub
commit 3eb786f35a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -294,6 +294,14 @@ public:
/**********************************************************************/ /**********************************************************************/
bool isPressed(void) { return currstate; }; 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: private:
Adafruit_GFX *_gfx; Adafruit_GFX *_gfx;
int16_t _x1, _y1; // Coordinates of top-left corner int16_t _x1, _y1; // Coordinates of top-left corner