tcMenu
Public Member Functions | List of all members
DashDrawParametersUpdate Class Reference

#include <DrawableDashboard.h>

Inheritance diagram for DashDrawParametersUpdate:
DashDrawParameters DashDrawParametersIntUpdateRange DashDrawParametersTextUpdateRange

Public Member Functions

 DashDrawParametersUpdate (color_t fgColor_, color_t bgColor_, color_t fgUpdateColor_, color_t bgUpdateColor_, const GFXfont *font_, DashAlign align=TITLE_RIGHT_VALUE_RIGHT)
 
 DashDrawParametersUpdate (color_t fgColor_, color_t bgColor_, color_t fgUpdateColor_, color_t bgUpdateColor_, const UnicodeFont *font_, DashAlign align=TITLE_RIGHT_VALUE_RIGHT)
 
 DashDrawParametersUpdate (color_t fgColor_, color_t bgColor_, color_t fgUpdateColor_, color_t bgUpdateColor_, const NativeFontDesc &font_, DashAlign align=TITLE_RIGHT_VALUE_RIGHT)
 
color_t getBgColor (MenuItem *item, bool updated) override
 
color_t getFgColor (MenuItem *item, bool updated) override
 
- Public Member Functions inherited from DashDrawParameters
 DashDrawParameters (color_t fgColor_, color_t bgColor_, const GFXfont *font_, DashAlign align=TITLE_RIGHT_VALUE_RIGHT)
 Creates a dash parameter that has a background, foreground, font, and alignment. In this case the font is an Adafruit graphics font via tcUnicodeHelper. More...
 
 DashDrawParameters (color_t fgColor_, color_t bgColor_, const UnicodeFont *font_, DashAlign align=TITLE_RIGHT_VALUE_RIGHT)
 Creates a dash parameter that has a background, foreground, font, and alignment. In this case the font is a tcUnicode font. More...
 
 DashDrawParameters (color_t fgColor_, color_t bgColor_, const NativeFontDesc &font_, DashAlign align=TITLE_RIGHT_VALUE_RIGHT)
 Creates a dash parameter that has a background, foreground, font, and alignment. In this case the font is a native font that works with the library directly. More...
 
bool isTitleDrawn ()
 
bool isTitleLeftAlign ()
 
bool isValueLeftAlign ()
 
const DeviceFontDrawingMode & getFontMode () const
 
virtual color_t getTitleBgColor (MenuItem *item, bool updated)
 
virtual color_t getTitleFgColor (MenuItem *item, bool updated)
 

Additional Inherited Members

- Public Types inherited from DashDrawParameters
enum  DashAlign {
  TITLE_LEFT_VALUE_LEFT , TITLE_LEFT_VALUE_RIGHT , NO_TITLE_VALUE_LEFT , NO_TITLE_VALUE_RIGHT ,
  TITLE_RIGHT_VALUE_LEFT , TITLE_RIGHT_VALUE_RIGHT
}
 
- Protected Attributes inherited from DashDrawParameters
DashAlign alignment
 
color_t fgColor
 
color_t bgColor
 
DeviceFontDrawingMode fontMode
 

Detailed Description

In addition to regular dash draw parameters this class adds support to store colors for items that have updated

Member Function Documentation

◆ getBgColor()

color_t DashDrawParametersUpdate::getBgColor ( MenuItem item,
bool  updated 
)
inlineoverridevirtual

the background color method is overloaded, each implementation has a different way of handling it.

Returns
the background color, in this class it is fixed

Reimplemented from DashDrawParameters.

◆ getFgColor()

color_t DashDrawParametersUpdate::getFgColor ( MenuItem item,
bool  updated 
)
inlineoverridevirtual

the foreground color method is overloaded, each implementation has a different way of handling it.

Returns
the background color, in this class it is fixed

Reimplemented from DashDrawParameters.


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