|
|
|
@ -50,15 +50,22 @@ enum TextSize { |
|
|
|
|
FONT_BOLD = 2, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
enum TextAlign { |
|
|
|
|
ALIGN_LEFT = 0, |
|
|
|
|
ALIGN_CENTER = 1, |
|
|
|
|
ALIGN_RIGHT = 2, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
struct TextStyle { |
|
|
|
|
bool bg; //!< Fill the characters background with the opposite color
|
|
|
|
|
enum TextSize size; //!< Character size
|
|
|
|
|
int limit; //!< Number of characters to print from the string, if > 0
|
|
|
|
|
int skip; //!< Characters to skip before printing
|
|
|
|
|
int spacing_x; //!< Additional X spacing
|
|
|
|
|
int spacing_y; //!< Additional Y spacing
|
|
|
|
|
bool nowrap; //!< Stop painting when the right edge of the screen is reached
|
|
|
|
|
bool wrap_to_0; //!< wrap to 0 instead of the initial X coordinate
|
|
|
|
|
bool bg; //!< Fill the characters background with the opposite color
|
|
|
|
|
enum TextSize size; //!< Character size
|
|
|
|
|
enum TextAlign align; //!< Alignment (works only for single line)
|
|
|
|
|
int limit; //!< Number of characters to print from the string, if > 0
|
|
|
|
|
int skip; //!< Characters to skip before printing
|
|
|
|
|
int spacing_x; //!< Additional X spacing
|
|
|
|
|
int spacing_y; //!< Additional Y spacing
|
|
|
|
|
bool nowrap; //!< Stop painting when the right edge of the screen is reached
|
|
|
|
|
bool wrap_to_0; //!< wrap to 0 instead of the initial X coordinate
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// setStr draws a string of characters, calling setChar with
|
|
|
|
|