Iridescence 1.00
Embedded Graphic Framework
Loading...
Searching...
No Matches
DsGaugeBase Class Reference

DsGaugeBase is a base class for all gauge views. More...

#include <ds_gauge_base.h>

Inheritance diagram for DsGaugeBase:
[legend]

Public Member Functions

DsGaugeBasesetBorderColor (DsColor color)
 Sets the border color.
 
DsGaugeBasesetTrackColor (DsColor color)
 Sets the track color.
 
DsGaugeBasesetActiveColor (DsColor color)
 Sets the active color.
 
DsGaugeBasesetBorderThickness (uint8_t thickness)
 Sets the border thickness.
 
DsGaugeBasesetValueColor (DsColor color)
 Sets the value text color.
 
DsGaugeBasesetValueFont (const ds_bitmap_font_t *font)
 Sets the font used to render the value.
 
DsGaugeBasesetValueFormat (const char *format)
 Sets the printf() style format string used to print the value.
 
DsGaugeBasesetValueOffset (int16_t offset)
 Sets the vertical value offset in pixels.
 
DsGaugeBasesetTitleColor (DsColor color)
 Sets the title color.
 
DsGaugeBasesetTitleFont (const ds_bitmap_font_t *font)
 Sets the font used to render the title.
 
DsGaugeBasesetTitle (const char *title)
 Sets the title.
 
DsGaugeBasesetTitleOffset (int16_t offset)
 Sets the vertical title offset in pixels.
 
DsGaugeBasesetUnitColor (DsColor color)
 Sets the unit color.
 
DsGaugeBasesetUnitFont (const ds_bitmap_font_t *font)
 Sets the font used to render the unit.
 
DsGaugeBasesetUnit (const char *unit)
 Sets the unit.
 
DsGaugeBasesetUnitOffset (int16_t offset)
 Sets the vertical unit offset in pixels.
 

Protected Attributes

DsColor mBorderColor
 
DsColor mTrackColor
 
DsColor mActiveColor
 
DsColor mValueColor
 
const ds_bitmap_font_tmValueFont
 
const char * mValueFormat
 
DsRect mValueRegion
 
DsColor mTitleColor
 
const ds_bitmap_font_tmTitleFont
 
const char * mTitleText
 
DsRect mTitleRegion
 
DsColor mUnitColor
 
const ds_bitmap_font_tmUnitFont
 
const char * mUnitText
 
DsRect mUnitRegion
 
int16_t mValueOffset
 
int16_t mTitleOffset
 
int16_t mUnitOffset
 
uint8_t mBorderThickness
 

Detailed Description

DsGaugeBase is a base class for all gauge views.

Member Function Documentation

◆ setActiveColor()

DsGaugeBase & DsGaugeBase::setActiveColor ( DsColor  color)

Sets the active color.

Parameters
colorColor
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setBorderColor()

DsGaugeBase & DsGaugeBase::setBorderColor ( DsColor  color)

Sets the border color.

Parameters
colorColor
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setBorderThickness()

DsGaugeBase & DsGaugeBase::setBorderThickness ( uint8_t  thickness)

Sets the border thickness.

Parameters
thicknessBorder thickness in pixels
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setTitle()

DsGaugeBase & DsGaugeBase::setTitle ( const char *  title)

Sets the title.

Parameters
titlePointer to a C string
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setTitleColor()

DsGaugeBase & DsGaugeBase::setTitleColor ( DsColor  color)

Sets the title color.

Parameters
colorColor
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setTitleFont()

DsGaugeBase & DsGaugeBase::setTitleFont ( const ds_bitmap_font_t font)

Sets the font used to render the title.

Parameters
fontFont
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setTitleOffset()

DsGaugeBase & DsGaugeBase::setTitleOffset ( int16_t  offset)

Sets the vertical title offset in pixels.

Parameters
offsetOffset in pixels (positive will print the title lower on the screen)
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setTrackColor()

DsGaugeBase & DsGaugeBase::setTrackColor ( DsColor  color)

Sets the track color.

Parameters
colorColor
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setUnit()

DsGaugeBase & DsGaugeBase::setUnit ( const char *  unit)

Sets the unit.

Parameters
titlePointer to a C string
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setUnitColor()

DsGaugeBase & DsGaugeBase::setUnitColor ( DsColor  color)

Sets the unit color.

Parameters
colorColor
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setUnitFont()

DsGaugeBase & DsGaugeBase::setUnitFont ( const ds_bitmap_font_t font)

Sets the font used to render the unit.

Parameters
fontFont
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setUnitOffset()

DsGaugeBase & DsGaugeBase::setUnitOffset ( int16_t  offset)

Sets the vertical unit offset in pixels.

Parameters
offsetOffset in pixels (positive will print the unit higher on the screen)
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setValueColor()

DsGaugeBase & DsGaugeBase::setValueColor ( DsColor  color)

Sets the value text color.

Parameters
colorColor
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setValueFont()

DsGaugeBase & DsGaugeBase::setValueFont ( const ds_bitmap_font_t font)

Sets the font used to render the value.

Parameters
fontFont
Return values
Referenceto 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
formatprintf() style format string. Only one float value is passed to the printf() formatting function.
Return values
Referenceto the current object. This allows daisy-chaining calls.

◆ setValueOffset()

DsGaugeBase & DsGaugeBase::setValueOffset ( int16_t  offset)

Sets the vertical value offset in pixels.

Parameters
offsetOffset in pixels (positive will print the value lower on the screen)
Return values
Referenceto the current object. This allows daisy-chaining calls.

The documentation for this class was generated from the following file: