tbx
0.7.3
|
fpcs namespace is used to provide control strings for font painting More...
Functions | |
std::string | move_x (int move) |
Move position horizontally. More... | |
std::string | move_x_os (int move) |
Move position horizontally in OS units. More... | |
std::string | move_y (int move) |
Move position vertically. More... | |
std::string | move_y_os (int move) |
Move position vertically in OS units. More... | |
std::string | colour (tbx::Colour fore, tbx::Colour back, int offset=14) |
Set foreground and background font colours. More... | |
std::string | underline (int base, int thickness) |
Turn on or off underlining. More... | |
std::string | font (const tbx::Font &fnt) |
Change font in the string. More... | |
fpcs namespace is used to provide control strings for font painting
|
inline |
Set foreground and background font colours.
fore | foreground colour |
back | background colour |
offset | number of colours to use for antialiasing |
|
inline |
Change font in the string.
fnt | - new font to use |
|
inline |
Move position horizontally.
move | distance to move in millipoints |
|
inline |
Move position horizontally in OS units.
move | distance to move in OS units |
|
inline |
Move position vertically.
move | distance to move in millipoints |
|
inline |
Move position vertically in OS units.
move | distance to move in OS units |
|
inline |
Turn on or off underlining.
base | distance from base line for underline in 1/256th of current font size |
thickness | thickness of underline in 1/256th of current font size or 0 to turn it off |