MicroView Arduino Library - MicroViewGauge Class Reference


MicroViewGauge Class Reference
Inheritance diagram for MicroViewGauge:
MicroViewWidget

Public Member Functions

 MicroViewGauge (uint8_t newx, uint8_t newy, int16_t min, int16_t max)
 MicroViewGauge class initilisation. More...
 
 MicroViewGauge (uint8_t newx, uint8_t newy, int16_t min, int16_t max, uint8_t sty)
 MicroViewGauge class initialisation with style. More...
 
void draw ()
 Draw widget value. More...
 
void drawFace ()
 Draw widget face. More...
 
- Public Member Functions inherited from MicroViewWidget
 MicroViewWidget (uint8_t newx, uint8_t newy, int16_t min, int16_t max)
 MicroView widget parent class. More...
 
uint8_t getX ()
 Get widget x position.
 
uint8_t getY ()
 Get widget y position.
 
void setX (uint8_t newx)
 Set widget x position.
 
void setY (uint8_t newy)
 Set widget y position.
 
int16_t getMinValue ()
 Get minimum value. More...
 
int16_t getMaxValue ()
 Get maximum value. More...
 
int16_t getValue ()
 Get current value. More...
 
void setMinValue (int16_t min)
 Set minimum value. More...
 
void setMaxValue (int16_t max)
 Set maximum value. More...
 
void setValue (int16_t val)
 Set current value and update widget. More...
 
void setValue (int16_t val, boolean doDraw)
 Set current value with optional update. More...
 
uint8_t getValLen ()
 Get the print length of the value. More...
 
uint8_t getMaxValLen ()
 Get the maximum possible print length of the value. More...
 
void reDraw ()
 MicroView Widget reDraw routine. More...
 
void drawNumValue (int16_t value)
 Draw a signed decimal numeric value at the current cursor location. More...
 

Additional Inherited Members

- Protected Attributes inherited from MicroViewWidget
uint8_t posX
 
uint8_t posY
 
int16_t minValue
 
int16_t maxValue
 
int16_t value
 
uint8_t valLen
 
uint8_t maxValLen
 

Constructor & Destructor Documentation

MicroViewGauge::MicroViewGauge ( uint8_t  newx,
uint8_t  newy,
int16_t  min,
int16_t  max 
)

MicroViewGauge class initilisation.

Initialise the MicroViewGauge widget with default style.

MicroViewGauge::MicroViewGauge ( uint8_t  newx,
uint8_t  newy,
int16_t  min,
int16_t  max,
uint8_t  sty 
)

MicroViewGauge class initialisation with style.

Initialise the MicroViewGauge widget with style WIDGETSTYLE0 or WIDGETSTYLE1. Add WIDGETNOVALUE to the style to suppress displaying the numeric value. E.g. WIDGETSTYLE0 + WIDGETNOVALUE

Member Function Documentation

void MicroViewGauge::draw ( )
virtual

Draw widget value.

Convert the current value of the widget and draw the ticker representing the value.

Reimplemented from MicroViewWidget.

void MicroViewGauge::drawFace ( )
virtual

Draw widget face.

Draw image/diagram representing the widget's face.

Reimplemented from MicroViewWidget.