MCPcopy Create free account
hub / github.com/OpenStickCommunity/GP2040-CE / obdMenuShowItem

Function obdMenuShowItem

lib/OneBitDisplay/OneBitDisplay.cpp:989–995  ·  view source on GitHub ↗

obdMenuSetCallback() */ Display the text of a single menu item optionally erases what's under it to prevent left-over text when the length changes

Source from the content-addressed store, hash-verified

987// optionally erases what's under it to prevent left-over text when the length changes
988//
989void obdMenuShowItem(OBDISP *pOBD, int x, int y, char *szText, int bInvert, int bErase, int iFontSize, int bRender)
990{
991 static char *szBlank = (char *)" ";
992 if (bErase)
993 obdWriteString(pOBD, 0, 0, y, szBlank, iFontSize, 0, bRender); // erase old info
994 obdWriteString(pOBD, 0, x, y, szText, iFontSize, bInvert, bRender);
995} /* obdMenuShowItem() */
996
997//
998// Flash a menu item when it is selected

Callers 3

obdMenuShowFunction · 0.85
obdMenuFlashFunction · 0.85
obdMenuDeltaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected