Arduino GLCD Library Version 3 |

# gText API functions

All of the text functions described below can be applied to a rectangular area of the screen, called a text area. A text area acts like a virtual terminal and text output is displayed within the confines of a rectangle given in the DefineArea command. For example:

      gText  textTop = gText(textAreaTOP); // create a text area covering the top half of the display
      gText  myTextArea = gText(GLCD.CenterX-16, GLCD.CenterY -16, GLCD.CenterX +16, GLCD.CenterY+16); // create a text area covering the center 32 pixels of the display

All of the text functons operate on a text area by using the text area name instead of "GLCD", for example:

      textTop.SelectFont(System5x7); // select the system font for the text area name textTop
      textTop.println("a line of text"); // print a line of text to the text area.

See the example sketches for more example usage.

Functions available to user defined gText objects

All Classes Functions Variables