tcMenu
Classes | Functions
ScrollChoiceMenuItem.h File Reference

Go to the source code of this file.

Classes

class  ScrollChoiceMenuItem
 
struct  RgbColor32
 
class  Rgb32MenuItem
 

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

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