tcMenu
Classes | Enumerations | Functions
ScrollChoiceMenuItem.h File Reference

contains the menu item definition for scrolling choice types, and also for RGB items More...

Go to the source code of this file.

Classes

class  ScrollChoiceMenuItem
 
struct  RgbColor32
 
class  Rgb32MenuItem
 

Enumerations

enum  RgbPrintMode { DECIMAL , HEX_HTML }
 

Functions

int enumItemRenderFn (RuntimeMenuItem *item, uint8_t row, RenderFnMode mode, char *buffer, int bufferSize)
 
uint8_t hexValueOf (char val)
 
int rgbAlphaItemRenderFn (RuntimeMenuItem *item, uint8_t row, RenderFnMode mode, char *buffer, int bufferSize)
 

Detailed Description

contains the menu item definition for scrolling choice types, and also for RGB items

Enumeration Type Documentation

◆ RgbPrintMode

Defines which printing to use for RGB items globally, either DECIMAL which is more user friendly but takes more space, or HEX_HTML which is more much compact and uses HTML format.

Function Documentation

◆ enumItemRenderFn()

int enumItemRenderFn ( RuntimeMenuItem item,
uint8_t  row,
RenderFnMode  mode,
char *  buffer,
int  bufferSize 
)

the render function for enum items

◆ hexValueOf()

uint8_t hexValueOf ( char  val)

Helper function to get the hex character for a digit.

Parameters
valthe input between 0..15
Returns
the hex digit for the value

◆ rgbAlphaItemRenderFn()

int rgbAlphaItemRenderFn ( RuntimeMenuItem item,
uint8_t  row,
RenderFnMode  mode,
char *  buffer,
int  bufferSize 
)

The rendering callback function for RGB values