A character string comprising Hershey vector font glyphs.
More...
#include <string.hpp>
A character string comprising Hershey vector font glyphs.
◆ String() [1/2]
Create a new string.
The glyphs in the string.
◆ String() [2/2]
String::String |
( |
Font |
font, |
|
|
const char * |
chars |
|
) |
| |
Create a new string of glyphs of a given font.
- Parameters
-
font | The name of the font to use. |
chars | The characters comprising the string. |
◆ get_glyph()
Glyph String::get_glyph |
( |
int |
i | ) |
|
Get a i'th glyph in the string.
- Parameters
-
i | The index of the glyph to get. |
- Return values
-
The | glyph at position i in the string. |
◆ get_height()
int String::get_height |
( |
| ) |
|
Get the height of the string.
- Return values
-
◆ get_nglyph()
int String::get_nglyph |
( |
| ) |
|
Get the number of glyphs in the string.
- Return values
-
The | number of glyphs in the string. |
◆ get_width()
int String::get_width |
( |
| ) |
|
Get the width of the string.
- Return values
-
◆ operator+()
Add two strings.
- Parameters
-
rhs | The string to be appended. |
The documentation for this class was generated from the following files: