wxfontdatathis class holds a variety of information related to font dialogs. derived from include files <wx/cmndata.h> see also overview, wxfont, wxfontdialog members
wxfontdata::wxfontdata
wxfontdata::wxfontdatawxfontdata() constructor. initializes fontcolour to black, showhelp to black, allowsymbols to true, enableeffects to true, minsize to 0 and maxsize to 0.
wxfontdata::enableeffectsvoid enableeffects(bool enable) enables or disables 'effects' under ms windows or generic only. this refers to the controls for manipulating colour, strikeout and underline properties. the default value is true.
wxfontdata::getallowsymbolsbool getallowsymbols() under ms windows, returns a flag determining whether symbol fonts can be selected. has no effect on other platforms. the default value is true.
wxfontdata::getcolourwxcolour& getcolour() gets the colour associated with the font dialog. the default value is black.
wxfontdata::getchosenfontwxfont getchosenfont() gets the font chosen by the user if the user pressed ok (wxfontdialog::showmodal returned wxid_ok).
wxfontdata::getenableeffectsbool getenableeffects() determines whether 'effects' are enabled under windows. this refers to the controls for manipulating colour, strikeout and underline properties. the default value is true.
wxfontdata::getinitialfontwxfont getinitialfont() gets the font that will be initially used by the font dialog. this should have previously been set by the application.
wxfontdata::getshowhelpbool getshowhelp() returns true if the help button will be shown (windows only). the default value is false.
wxfontdata::setallowsymbolsvoid setallowsymbols(bool allowsymbols) under ms windows, determines whether symbol fonts can be selected. has no effect on other platforms. the default value is true.
wxfontdata::setchosenfontvoid setchosenfont(const wxfont& font) sets the font that will be returned to the user (for internal use only).
wxfontdata::setcolourvoid setcolour(const wxcolour& colour) sets the colour that will be used for the font foreground colour. the default colour is black.
wxfontdata::setinitialfontvoid setinitialfont(const wxfont&font) sets the font that will be initially used by the font dialog.
wxfontdata::setrangevoid setrange(int min, int max) sets the valid range for the font point size (windows only). the default is 0, 0 (unrestricted range).
wxfontdata::setshowhelpvoid setshowhelp(bool showhelp) determines whether the help button will be displayed in the font dialog (windows only). the default value is false.
wxfontdata::operator =void operator =(const wxfontdata& data) assignment operator for the font data.
|