Kerry Martin
/
Liz_Test_Code
KSM edits
Diff: Button.h
- Revision:
- 20:d25fb9c55781
- Parent:
- 19:fee3f71fab2d
--- a/Button.h Wed Jul 10 13:30:27 2019 +0000 +++ b/Button.h Thu Jul 11 14:04:19 2019 +0000 @@ -14,13 +14,15 @@ public: //Button(); Button(loc_t arg_corner1_x, loc_t arg_corner1_y, loc_t arg_corner2_x, loc_t arg_corner2_y, color_t arg_color, RA8875 *arg_display, const char * arg_name); + Button(rect_t arg_rect, color_t arg_color, RA8875 *arg_display, const char * arg_name); bool isPressed(loc_t cur_x, loc_t cur_y); void draw(); string toString(); + color_t button_color; private: - const loc_t corner1_x, corner1_y, corner2_x, corner2_y; + rect_t button_rect; char * button_name; - const color_t button_color; + RA8875 *lcd; //string button_name; };