Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SimpleGUI by
UGFontRenderer Class Reference
Provides two means to render a font
- windowed: uses the same wrap-around algorithm as UniGraphic
- clipped: does not wrap.
#include <UGFontRenderer.h>
Inherits FontRenderer.
Public Member Functions | |
virtual void | putc (const char c, GraphicsDisplay *display, Font *font) |
Render a single character at the current cursor location, advance the cursor Clip/wrap as necessary. | |
virtual void | puts (const char *s, GraphicsDisplay *display, Font *font) |
Render a string at the current cursor location, advance the cursor Clip/wrap as necessary. | |
void | window (int x, int y, int width, int height, bool clip) |
Sets the window into which to render. |
Detailed Description
Provides two means to render a font
- windowed: uses the same wrap-around algorithm as UniGraphic
- clipped: does not wrap.
Only shows pixels within the clipping window
Definition at line 13 of file UGFontRenderer.h.
Member Function Documentation
void putc | ( | const char | c, |
GraphicsDisplay * | display, | ||
Font * | font | ||
) | [virtual] |
Render a single character at the current cursor location, advance the cursor Clip/wrap as necessary.
Implements FontRenderer.
Definition at line 8 of file UGFontRenderer.cpp.
void puts | ( | const char * | s, |
GraphicsDisplay * | display, | ||
Font * | font | ||
) | [virtual] |
Render a string at the current cursor location, advance the cursor Clip/wrap as necessary.
Implements FontRenderer.
Definition at line 75 of file UGFontRenderer.cpp.
void window | ( | int | x, |
int | y, | ||
int | width, | ||
int | height, | ||
bool | clip | ||
) | [inherited] |
Sets the window into which to render.
placing the cursor at (x,y)
Definition at line 43 of file FontRenderer.h.
Generated on Tue Jul 12 2022 22:27:14 by
