|
#include <CFontComboBox.h>

Public Member Functions | |
| CFontComboBox (const char *label=0, int layoutSize=10, CLayoutAlign layoutAlign=SP_ALIGN_TOP) | |
| void | loadFonts () |
| Loads list of system fonts. | |
| std::string | fontName () const |
| Returns currently selected font name. | |
| void | fontName (const char *fn) |
| Sets currently selected font name. | |
| Fl_Font | font () const |
| Returns font index as Fl_Font. | |
| virtual std::string | className () const |
| Returns widget class name (internal SPTK RTTI). | |
Static Public Member Functions | |
| static CLayoutClient * | creator (CXmlNode *node) |
| Creates a widget based on the XML node information. | |
A combobox filled with the system fonts names
| sptk::CFontComboBox::CFontComboBox | ( | const char * | label = 0, |
|
| int | layoutSize = 10, |
|||
| CLayoutAlign | layoutAlign = SP_ALIGN_TOP | |||
| ) |
Constructor in SPTK style
| label | const char *, label | |
| layoutSize | int, widget align in layout | |
| layoutAlign | CLayoutAlign, widget align in layout |
| static CLayoutClient* sptk::CFontComboBox::creator | ( | CXmlNode * | node | ) | [static] |
Creates a widget based on the XML node information.
| node | CXmlNode*, an XML node with widget information |
Reimplemented from sptk::CComboBox.