Lab4
Dependencies: SeeedStudioTFTv2 TFT_fonts mbed
Fork of Seeed_TFT_Touch_Shield by
Diff: Panel.h
- Revision:
- 4:ebcf8d366b91
- Child:
- 6:ebffa73d4f95
diff -r a717ac467c2e -r ebcf8d366b91 Panel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Panel.h Fri Sep 26 12:40:19 2014 +0000 @@ -0,0 +1,21 @@ +#pragma once +#include "Widget.h" + +class Panel:public AbstractWidget { + +private: + int used_cells ; + + void init(int p_color, int bd_color, int r, int c); + +public: + virtual void paint(); + //constructor for absoulte location of a Panel + Panel(int x_0, int y_0, int x_1, int y_1, int p_color, int bd_color, int r, int c); + + //constructor for relative location of a Panel - for nested panels + Panel(int p_color, int bd_color, int w, int h, int r, int c); + + virtual bool addWidget(AbstractWidget *p); + +}; \ No newline at end of file