sptk2 logo
SPTK Home Page

sptk::CFontComboBox Class Reference
[GUI Classes]

Font combobox widget. More...

#include <CFontComboBox.h>

Inheritance diagram for sptk::CFontComboBox:

sptk::CComboBox sptk::CBaseListBox sptk::CControl sptk::CLayoutClient

List of all members.

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 CLayoutClientcreator (CXmlNode *node)
 Creates a widget based on the XML node information.


Detailed Description

Font combobox widget.

A combobox filled with the system fonts names


Constructor & Destructor Documentation

sptk::CFontComboBox::CFontComboBox ( const char *  label = 0,
int  layoutSize = 10,
CLayoutAlign  layoutAlign = SP_ALIGN_TOP 
)

Constructor in SPTK style

Parameters:
label const char *, label
layoutSize int, widget align in layout
layoutAlign CLayoutAlign, widget align in layout


Member Function Documentation

static CLayoutClient* sptk::CFontComboBox::creator ( CXmlNode node  )  [static]

Creates a widget based on the XML node information.

Parameters:
node CXmlNode*, an XML node with widget information

Reimplemented from sptk::CComboBox.


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

Mon Mar 5 11:56:14 2012: SPTK 3.5.7