tcMenu
Classes | Public Member Functions | List of all members
DashDrawParametersTextUpdateRange Class Reference

#include <DrawableDashboard.h>

Inheritance diagram for DashDrawParametersTextUpdateRange:
DashDrawParametersUpdate DashDrawParameters

Classes

struct  TextColorOverride
 

Public Member Functions

 DashDrawParametersTextUpdateRange (color_t fgColor_, color_t bgColor_, color_t fgUpdateColor_, color_t bgUpdateColor_, const GFXfont *font_, const TextColorOverride colorOverrides_[], int numberRanges, DashAlign align=TITLE_RIGHT_VALUE_RIGHT)
 
 DashDrawParametersTextUpdateRange (color_t fgColor_, color_t bgColor_, color_t fgUpdateColor_, color_t bgUpdateColor_, const UnicodeFont *font_, const TextColorOverride colorOverrides_[], int numberRanges, DashAlign align=TITLE_RIGHT_VALUE_RIGHT)
 
 DashDrawParametersTextUpdateRange (color_t fgColor_, color_t bgColor_, color_t fgUpdateColor_, color_t bgUpdateColor_, const NativeFontDesc &font_, const TextColorOverride colorOverrides_[], int numberRanges, DashAlign align=TITLE_RIGHT_VALUE_RIGHT)
 
- Public Member Functions inherited from DashDrawParametersUpdate
 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)
 
- 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

A drawing parameter that updates the color based on the text of a menu item. You can define various string values for matching, the string value should be in program memory. In addition it can have a set of colors to handle change on update.

It works with any runtime menu item such as TextMenuItem and others.


Class Documentation

◆ DashDrawParametersTextUpdateRange::TextColorOverride

struct DashDrawParametersTextUpdateRange::TextColorOverride
Class Members
const char * text
color_t fgColor
color_t bgColor

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