Lab4

Dependencies:   SeeedStudioTFTv2 TFT_fonts mbed

Fork of Seeed_TFT_Touch_Shield by Shields

Committer:
uswickra
Date:
Fri Sep 26 15:33:34 2014 +0000
Revision:
6:ebffa73d4f95
Parent:
4:ebcf8d366b91
fix report

Who changed what in which revision?

UserRevisionLine numberNew contents of line
uswickra 4:ebcf8d366b91 1 #pragma once
uswickra 4:ebcf8d366b91 2 #include "Panel.h"
uswickra 4:ebcf8d366b91 3
uswickra 4:ebcf8d366b91 4 class Button:public Panel {
uswickra 4:ebcf8d366b91 5 public:
uswickra 4:ebcf8d366b91 6 //constructor to create 1x1 button
uswickra 4:ebcf8d366b91 7 Button(char* label, int p_color, int bd_color);
uswickra 4:ebcf8d366b91 8 //constructor to create wxh button
uswickra 4:ebcf8d366b91 9 Button(char* label, int p_color, int bd_color, int w, int h);
uswickra 4:ebcf8d366b91 10 virtual void paint();
uswickra 4:ebcf8d366b91 11
uswickra 6:ebffa73d4f95 12 virtual void trigger_action(ActionType type, ActionEvent evnt, void* target);
uswickra 4:ebcf8d366b91 13
uswickra 4:ebcf8d366b91 14 private:
uswickra 4:ebcf8d366b91 15 char* lbl;
uswickra 4:ebcf8d366b91 16 };