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/

Slider.h

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

File content as of revision 1:a74e42cf52b2:

#ifndef SLIDER_H
#define SLIDER_H

#include "Screen.h"

class Slider:public Widget
{
public:
    /** Construct a Slider
    *
    * @param mScreen the pointer screen
    * @param _id the identifier Id
    * @params _x up left
    * @params _y up left
    * @params _width
    * @params _height
    * @params _valMax
    * @params _value
    * @params _colorBkg
    */
    Slider(Screen* mScreen,UINT16 _id,UINT16 _x,UINT16 _y,UINT16 _width,UINT16 _height,int _valMax,int _value,
           Color _colorBkg);
    //
    virtual void draw(void);
    //
    virtual ~Slider(void);
    //
    void setInvisible(bool _state);
    //
    int getValue(GraphicMessage* pmsg);

protected:
    int myValueMax;
    int myValue;
};

#endif