Lab4
Dependencies: SeeedStudioTFTv2 TFT_fonts mbed
Fork of Seeed_TFT_Touch_Shield by
Diff: Button.h
- Revision:
- 4:ebcf8d366b91
- Child:
- 6:ebffa73d4f95
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Button.h Fri Sep 26 12:40:19 2014 +0000 @@ -0,0 +1,16 @@ +#pragma once +#include "Panel.h" + +class Button:public Panel { +public: + //constructor to create 1x1 button + Button(char* label, int p_color, int bd_color); + //constructor to create wxh button + Button(char* label, int p_color, int bd_color, int w, int h); + virtual void paint(); + + virtual void trigger_action(ActionType type, ActionEvent evnt); + +private: + char* lbl; +}; \ No newline at end of file