Library for 3.2'' uLcd Picaso Display4D system Picaso Serial Environment Command Set web: http://www.4dsystems.com.au/product/20/67/Processors_Graphics/PICASO/

Button.h

Committer:
adelino
Date:
2015-04-05
Revision:
1:a74e42cf52b2

File content as of revision 1:a74e42cf52b2:

#ifndef BUTTON_H
#define BUTTON_H

#include "Screen.h"

class Button:public Widget
{
public:
    /** Construct a Button
    *
    * @param mScreen the pointer screen
    * @param _id the identifier Id
    * @params _x up left
    * @params _y up left
    * @params _text
    * @params _font
    * @params _colorText
    * @params _colorBtn
    * @params _state BUTTON_STATE_PRESSED or BUTTON_STATE_RELEASED,
    */
    Button(Screen* mScreen,UINT16 _id,UINT16 _x,UINT16 _y,string _text,Font _font,
           Color _colorText,Color _colorBtn,State _state);
    //
    virtual void draw(void);
    //
    virtual ~Button(void);

    //setter
    void setInvisible(bool _state);
    //
    void setState(State _state);

protected:
    string myText;
    Font myFont;
    Color myColorText;
};

#endif