Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Scaler.h
- Committer:
- adelino
- Date:
- 2015-04-05
- Revision:
- 1:a74e42cf52b2
File content as of revision 1:a74e42cf52b2:
#ifndef SCALER_H
#define SCALER_H
#include "Screen.h"
class Scaler:public Widget
{
public:
/** Construct a Input
*
* @param mScreen the pointer screen
* @param _id the identifier Id
* @params _x up left
* @params _y up left
* @params _width
* @params _height
* @params _valMin
* @params _valInc incrementing the value
* @params _valMax
*/
Scaler(Screen* mScreen,UINT16 _id,UINT16 _x,UINT16 _y,UINT16 _width,UINT16 _height,float _valMin,float _valInc,
float _valMax);
//
virtual void draw(void);
//
virtual ~Scaler(void);
//
void setInvisible(bool _state);
//
float getValue(GraphicMessage* msg);
//
void setColorBkg(Color _color);
//
void setColorCursorDown(Color _color);
//
void setColorCursorUp(Color _color);
protected:
float myValMin;
float myValInc;
float myValMax;
float myValue;
Color myColorBkg;
Color myColorCursorUp;
Color myColorCursorDown;
};
#endif