#include <GfxMenuConfig.h>
Public Types | |
enum | ColorType : uint8_t { TEXT, BACKGROUND, HIGHLIGHT1, HIGHLIGHT2, SIZEOF_COLOR_ARRAY } |
enum | ComponentType { COMPTYPE_TITLE, COMPTYPE_ITEM, COMPTYPE_ACTION } |
Public Member Functions | |
ItemDisplayProperties (uint32_t key, color_t *palette, const MenuPadding &pad, const void *font, uint8_t mag, uint8_t spacing, uint8_t height, GridPosition::GridJustification defaultJustification) | |
ItemDisplayProperties (const ItemDisplayProperties &other) | |
uint32_t | getKey () const |
GridPosition::GridJustification | getDefaultJustification () |
void | setDefaultJustification (GridPosition::GridJustification justification) |
uint8_t | getSpaceAfter () const |
void | setSpaceAfter (uint8_t space) |
uint8_t | getRequiredHeight () const |
void | setRequiredHeight (uint8_t newHeight) |
color_t | getColor (ColorType color) const |
void | setColor (ColorType color, color_t value) |
void | setColors (color_t *palette) |
const MenuPadding & | getPadding () const |
void | setPadding (const MenuPadding &pad) |
uint8_t | getFontMagnification () const |
void | setFontInfo (const void *font, uint8_t mag) |
const void * | getFont () |
color_t * | getPalette () |
Represents the display properties for a menu item, submenu or default, it stores this the properties key which can key at each of those levels. It stores the color palette, padding, row spacing, font information and default justification for rendering.
enum tcgfx::ItemDisplayProperties::ColorType : uint8_t |
The sub-component that is being drawn that we need the formatting rules for.
The overall component type being rendered