MCPcopy Create free account
hub / github.com/HASwitchPlate/openHASP / drawString

Method drawString

lib/GxTFT/src/GxTFT.cpp:1603–1610  ·  view source on GitHub ↗

** Function name: drawString (with or without user defined font) ** Description : draw string with padding if it is defined ***************************************************************************************/ Without font number, uses font set by setTextFont()

Source from the content-addressed store, hash-verified

1601***************************************************************************************/
1602// Without font number, uses font set by setTextFont()
1603int16_t GxTFT::drawString(const String& string, int poX, int poY)
1604{
1605 int16_t len = string.length() + 2;
1606 if (len <= 2) return 0;
1607 char buffer[len];
1608 string.toCharArray(buffer, len);
1609 return drawString(buffer, poX, poY, textfont);
1610}
1611// With font number
1612int16_t GxTFT::drawString(const String& string, int poX, int poY, int font)
1613{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected