MicroView Arduino Library - MicroViewSlider Class Reference


MicroViewSlider Class Reference
Inheritance diagram for MicroViewSlider:
MicroViewWidget

Public Member Functions

 MicroViewSlider (uint8_t newx, uint8_t newy, int16_t min, int16_t max)
 MicroViewSlider class initialisation. More...
 
 MicroViewSlider (uint8_t newx, uint8_t newy, int16_t min, int16_t max, uint8_t sty)
 MicroViewSlider 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

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

MicroViewSlider class initialisation.

Initialise the MicroViewSlider widget with default style.

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

MicroViewSlider class initialisation with style.

Initialise the MicroViewSlider widget with style WIDGETSTYLE0 or WIDGETSTYLE1 or WIDGETSTYLE2 (like 0, but vertical) or WIDGETSTYLE3 (like 1, but vertical). Add WIDGETNOVALUE to the style to suppress displaying the numeric value. E.g. WIDGETSTYLE0 + WIDGETNOVALUE

Member Function Documentation

void MicroViewSlider::draw ( )
virtual

Draw widget value.

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

Reimplemented from MicroViewWidget.

void MicroViewSlider::drawFace ( )
virtual

Draw widget face.

Draw image/diagram representing the widget's face.

Reimplemented from MicroViewWidget.