7#ifndef _DS_GAUGE_BASE_H
8#define _DS_GAUGE_BASE_H
13#include <ds_geometry.h>
176 const char* mValueFormat;
181 const char* mTitleText;
186 const char* mUnitText;
189 int16_t mValueOffset;
190 int16_t mTitleOffset;
192 uint8_t mBorderThickness;
DsColor is a class that represents a 4 channel color (Alpha, Red, Green, Blue).
Definition ds_color.h:53
DsGaugeBase is a base class for all gauge views.
Definition ds_gauge_base.h:22
DsGaugeBase & setUnitFont(const ds_bitmap_font_t *font)
Sets the font used to render the unit.
DsGaugeBase & setTitleColor(DsColor color)
Sets the title color.
DsGaugeBase & setValueColor(DsColor color)
Sets the value text color.
DsGaugeBase & setTitle(const char *title)
Sets the title.
DsGaugeBase & setUnitOffset(int16_t offset)
Sets the vertical unit offset in pixels.
DsGaugeBase & setValueFormat(const char *format)
Sets the printf() style format string used to print the value.
DsGaugeBase & setUnitColor(DsColor color)
Sets the unit color.
DsGaugeBase & setTrackColor(DsColor color)
Sets the track color.
DsGaugeBase & setValueOffset(int16_t offset)
Sets the vertical value offset in pixels.
DsGaugeBase & setBorderColor(DsColor color)
Sets the border color.
DsGaugeBase & setTitleOffset(int16_t offset)
Sets the vertical title offset in pixels.
DsGaugeBase & setTitleFont(const ds_bitmap_font_t *font)
Sets the font used to render the title.
DsGaugeBase & setActiveColor(DsColor color)
Sets the active color.
DsGaugeBase & setValueFont(const ds_bitmap_font_t *font)
Sets the font used to render the value.
DsGaugeBase & setUnit(const char *unit)
Sets the unit.
DsGaugeBase & setBorderThickness(uint8_t thickness)
Sets the border thickness.
DsRect is a class that represents a 2D rectangle (X, Y, W, H)
Definition ds_geometry.h:1507