#include <GfxMenuConfig.h>
Public Member Functions | |
ItemDisplayProperties * | configFor (MenuItem *pItem, ItemDisplayProperties::ComponentType) override |
ItemDisplayProperties * | configForCurrentSub (ItemDisplayProperties::ComponentType) override |
DrawableIcon * | iconForMenuItem (uint16_t) override |
color_t | getSelectedColor (ItemDisplayProperties::ColorType colorType, bool=false) override |
GridPositionWithId * | gridPositionForItem (MenuItem *pItem) override |
void | addGridPosition (MenuItem *pItem, const GridPosition &position) override |
Used by the BaseGraphicalRenderer class to work out how to draw an item, which grid position it is in etc. This version does not implement icons, nor does it implement overriding of display properties, it is intended for LCDs.
This is used by non graphical displays to allow grid configurations while not providing the complex support for display properties at different levels. This makes the class much simpler and should use far less memory on devices.
|
inlineoverridevirtual |
Returns the configuration for the parameters below, it should never return nullptr.
pItem | the item or null for default |
compType | the component type to get the rendering for |
Implements tcgfx::ItemDisplayPropertiesFactory.
|
inlineoverridevirtual |
Returns the configuration for the parameters below, it should never return nullptr, but the difference to configFor is that this version will not check at the item level so is safe when there are overrides at both the item and the sub level.
compType | the type of component to get the rendering for |
Implements tcgfx::ItemDisplayPropertiesFactory.
|
inlineoverridevirtual |
Returns the icon associated with the menu item ID, there are two special IDs for the edit and active icons
id | the menu item ID or the special ID for edit or active icon |
Implements tcgfx::ItemDisplayPropertiesFactory.
|
inlineoverridevirtual |
Get the selected color for a given palette entry
colorType |
Implements tcgfx::ItemDisplayPropertiesFactory.
|
inlineoverridevirtual |
Get the grid item for a given position if it is available
pItem | the item to get the grid position for |
Implements tcgfx::ItemDisplayPropertiesFactory.
|
inlineoverridevirtual |
add a new grid position for a given menu item
item | the menu item the position is for |
position | the position to record |
Implements tcgfx::ItemDisplayPropertiesFactory.