Lab4
Dependencies: SeeedStudioTFTv2 TFT_fonts mbed
Fork of Seeed_TFT_Touch_Shield by
Diff: ActionListener.h
- Revision:
- 6:ebffa73d4f95
- Parent:
- 4:ebcf8d366b91
--- a/ActionListener.h Fri Sep 26 12:42:10 2014 +0000 +++ b/ActionListener.h Fri Sep 26 15:33:34 2014 +0000 @@ -11,7 +11,7 @@ //pixel y that event took place int y; - char* string; + char* str; }; class ActionListener{ @@ -23,11 +23,10 @@ void action(ActionType type, ActionEvent evnt); protected: - virtual void trigger_action( ActionType type, ActionEvent evnt)=0; + virtual void trigger_action( ActionType type, ActionEvent evnt, void* target)=0; + bool is_reg; private: - bool is_reg; - ActionListener* target; - vector<ActionListener*> children; + ActionListener* target; }; \ No newline at end of file