ewol::context::ConfigFont Class Reference

Public Member Functions

 ConfigFont ()
 
void setFolder (const std::string &_folder)
 
const std::string & getFolder ()
 
void set (const std::string &_fontName, int32_t _size)
 
const std::string & getName ()
 
void setName (const std::string &_fontName)
 
int32_t getSize ()
 
void setSize (int32_t _size)
 
void setUseExternal (bool _val)
 
bool getUseExternal ()
 

Constructor & Destructor Documentation

§ ConfigFont()

ewol::context::ConfigFont::ConfigFont ( )

Constructor / destructor

Member Function Documentation

§ getFolder()

const std::string& ewol::context::ConfigFont::getFolder ( )
inline

get the default font folder.

Returns
The default font folder.

§ getName()

const std::string& ewol::context::ConfigFont::getName ( )
inline

get the current default font name a reference on the font name string

§ getSize()

int32_t ewol::context::ConfigFont::getSize ( )
inline

get the default font size.

Returns
the font size.

§ getUseExternal()

bool ewol::context::ConfigFont::getUseExternal ( )
inline

get the use of internal/external Font

Returns
true to enable search of internal data.

§ set()

void ewol::context::ConfigFont::set ( const std::string &  _fontName,
int32_t  _size 
)

set the defaut font for all the widgets and basics display.

Parameters
[in]_fontNameThe font name requested (not case sensitive) ex "Arial" or multiple separate by ';' ex : "Arial;Helvetica".
[in]_sizeThe default size of the font default=10.

§ setFolder()

void ewol::context::ConfigFont::setFolder ( const std::string &  _folder)
inline

Specify the default font folder for the Ewol search system (only needed when embended font)

Parameters
[in]_folderbasic folder of the font (ex: DATA:fonts)

§ setName()

void ewol::context::ConfigFont::setName ( const std::string &  _fontName)

Set the current default font name.

Parameters
[in]_fontNameThe font name requested (not case sensitive) ex "Arial" or multiple separate by ';' ex : "Arial;Helvetica".

§ setSize()

void ewol::context::ConfigFont::setSize ( int32_t  _size)

Set the default font size.

Parameters
[in]_sizenew font size.

§ setUseExternal()

void ewol::context::ConfigFont::setUseExternal ( bool  _val)
inline

set use of internal/external Font

Parameters
[in]_valtrue to enable search of internal data.

The documentation for this class was generated from the following file: