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/

Committer:
adelino
Date:
Sun Apr 05 13:54:48 2015 +0000
Revision:
1:a74e42cf52b2
PicasoLib version 2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
adelino 1:a74e42cf52b2 1 #ifndef SCALER_H
adelino 1:a74e42cf52b2 2 #define SCALER_H
adelino 1:a74e42cf52b2 3
adelino 1:a74e42cf52b2 4 #include "Screen.h"
adelino 1:a74e42cf52b2 5
adelino 1:a74e42cf52b2 6 class Scaler:public Widget
adelino 1:a74e42cf52b2 7 {
adelino 1:a74e42cf52b2 8 public:
adelino 1:a74e42cf52b2 9 /** Construct a Input
adelino 1:a74e42cf52b2 10 *
adelino 1:a74e42cf52b2 11 * @param mScreen the pointer screen
adelino 1:a74e42cf52b2 12 * @param _id the identifier Id
adelino 1:a74e42cf52b2 13 * @params _x up left
adelino 1:a74e42cf52b2 14 * @params _y up left
adelino 1:a74e42cf52b2 15 * @params _width
adelino 1:a74e42cf52b2 16 * @params _height
adelino 1:a74e42cf52b2 17 * @params _valMin
adelino 1:a74e42cf52b2 18 * @params _valInc incrementing the value
adelino 1:a74e42cf52b2 19 * @params _valMax
adelino 1:a74e42cf52b2 20 */
adelino 1:a74e42cf52b2 21 Scaler(Screen* mScreen,UINT16 _id,UINT16 _x,UINT16 _y,UINT16 _width,UINT16 _height,float _valMin,float _valInc,
adelino 1:a74e42cf52b2 22 float _valMax);
adelino 1:a74e42cf52b2 23 //
adelino 1:a74e42cf52b2 24 virtual void draw(void);
adelino 1:a74e42cf52b2 25 //
adelino 1:a74e42cf52b2 26 virtual ~Scaler(void);
adelino 1:a74e42cf52b2 27 //
adelino 1:a74e42cf52b2 28 void setInvisible(bool _state);
adelino 1:a74e42cf52b2 29 //
adelino 1:a74e42cf52b2 30 float getValue(GraphicMessage* msg);
adelino 1:a74e42cf52b2 31 //
adelino 1:a74e42cf52b2 32 void setColorBkg(Color _color);
adelino 1:a74e42cf52b2 33 //
adelino 1:a74e42cf52b2 34 void setColorCursorDown(Color _color);
adelino 1:a74e42cf52b2 35 //
adelino 1:a74e42cf52b2 36 void setColorCursorUp(Color _color);
adelino 1:a74e42cf52b2 37
adelino 1:a74e42cf52b2 38 protected:
adelino 1:a74e42cf52b2 39 float myValMin;
adelino 1:a74e42cf52b2 40 float myValInc;
adelino 1:a74e42cf52b2 41 float myValMax;
adelino 1:a74e42cf52b2 42 float myValue;
adelino 1:a74e42cf52b2 43 Color myColorBkg;
adelino 1:a74e42cf52b2 44 Color myColorCursorUp;
adelino 1:a74e42cf52b2 45 Color myColorCursorDown;
adelino 1:a74e42cf52b2 46 };
adelino 1:a74e42cf52b2 47 #endif