tbx  0.7.3
Functions
tbx::fpcs Namespace Reference

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...
 

Detailed Description

fpcs namespace is used to provide control strings for font painting

Function Documentation

std::string tbx::fpcs::colour ( tbx::Colour  fore,
tbx::Colour  back,
int  offset = 14 
)
inline

Set foreground and background font colours.

Parameters
foreforeground colour
backbackground colour
offsetnumber of colours to use for antialiasing
Returns
string with sequence to change colours
std::string tbx::fpcs::font ( const tbx::Font fnt)
inline

Change font in the string.

Parameters
fnt- new font to use
Returns
string to change to new font handle
std::string tbx::fpcs::move_x ( int  move)
inline

Move position horizontally.

Parameters
movedistance to move in millipoints
Returns
string to use for font paint
std::string tbx::fpcs::move_x_os ( int  move)
inline

Move position horizontally in OS units.

Parameters
movedistance to move in OS units
Returns
string to use for font paint
std::string tbx::fpcs::move_y ( int  move)
inline

Move position vertically.

Parameters
movedistance to move in millipoints
Returns
string to use for font paint
std::string tbx::fpcs::move_y_os ( int  move)
inline

Move position vertically in OS units.

Parameters
movedistance to move in OS units
Returns
string to use for font paint
std::string tbx::fpcs::underline ( int  base,
int  thickness 
)
inline

Turn on or off underlining.

Parameters
basedistance from base line for underline in 1/256th of current font size
thicknessthickness of underline in 1/256th of current font size or 0 to turn it off
Returns
string to set underline