Lab4

Dependencies:   SeeedStudioTFTv2 TFT_fonts mbed

Fork of Seeed_TFT_Touch_Shield by Shields

Panel.h

Committer:
uswickra
Date:
2014-09-26
Revision:
4:ebcf8d366b91
Child:
6:ebffa73d4f95

File content as of revision 4:ebcf8d366b91:

#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); 

};