Skip to content

Text component

Igor Usenko edited this page May 20, 2022 · 4 revisions

Displays text content on the screen

State


  • content - text for display
  • size - font size
  • fontColor - color of the font
  • backColor - color of the background
  • font - fonts code
  • provide - function provider of the content and other state properties

Function provider


A function with such declaration
typedef void (*Provide)(TextState *state);
This function is called each time when screen renders see render and newState. The responsibility of this function is to update the component state.

Clone this wiki locally