Kerry Martin
/
Liz_Test_Code
KSM edits
Button.h
- Committer:
- lizard753
- Date:
- 2019-07-10
- Revision:
- 19:fee3f71fab2d
- Child:
- 20:d25fb9c55781
File content as of revision 19:fee3f71fab2d:
/// /// /// libraries used: #include "RA8875.h" #include "DisplayDefs.h" #include <string> // set up global variables // class Button { 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); bool isPressed(loc_t cur_x, loc_t cur_y); void draw(); string toString(); private: const loc_t corner1_x, corner1_y, corner2_x, corner2_y; char * button_name; const color_t button_color; RA8875 *lcd; //string button_name; };