DsGaugeBase is a base class for all gauge views.
More...
#include <ds_gauge_base.h>
DsGaugeBase is a base class for all gauge views.
◆ setActiveColor()
Sets the active color.
- Parameters
-
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setBorderColor()
Sets the border color.
- Parameters
-
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setBorderThickness()
DsGaugeBase & DsGaugeBase::setBorderThickness |
( |
uint8_t |
thickness | ) |
|
Sets the border thickness.
- Parameters
-
thickness | Border thickness in pixels |
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setTitle()
DsGaugeBase & DsGaugeBase::setTitle |
( |
const char * |
title | ) |
|
Sets the title.
- Parameters
-
title | Pointer to a C string |
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setTitleColor()
Sets the title color.
- Parameters
-
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setTitleFont()
Sets the font used to render the title.
- Parameters
-
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setTitleOffset()
DsGaugeBase & DsGaugeBase::setTitleOffset |
( |
int16_t |
offset | ) |
|
Sets the vertical title offset in pixels.
- Parameters
-
offset | Offset in pixels (positive will print the title lower on the screen) |
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setTrackColor()
Sets the track color.
- Parameters
-
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setUnit()
DsGaugeBase & DsGaugeBase::setUnit |
( |
const char * |
unit | ) |
|
Sets the unit.
- Parameters
-
title | Pointer to a C string |
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setUnitColor()
Sets the unit color.
- Parameters
-
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setUnitFont()
Sets the font used to render the unit.
- Parameters
-
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setUnitOffset()
DsGaugeBase & DsGaugeBase::setUnitOffset |
( |
int16_t |
offset | ) |
|
Sets the vertical unit offset in pixels.
- Parameters
-
offset | Offset in pixels (positive will print the unit higher on the screen) |
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setValueColor()
Sets the value text color.
- Parameters
-
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setValueFont()
Sets the font used to render the value.
- Parameters
-
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setValueFormat()
DsGaugeBase & DsGaugeBase::setValueFormat |
( |
const char * |
format | ) |
|
Sets the printf() style format string used to print the value.
- Parameters
-
format | printf() style format string. Only one float value is passed to the printf() formatting function. |
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
◆ setValueOffset()
DsGaugeBase & DsGaugeBase::setValueOffset |
( |
int16_t |
offset | ) |
|
Sets the vertical value offset in pixels.
- Parameters
-
offset | Offset in pixels (positive will print the value lower on the screen) |
- Return values
-
Reference | to the current object. This allows daisy-chaining calls. |
The documentation for this class was generated from the following file: