|
wxArt2D
|
#include <fontdlg.h>


Public Member Functions | |
| a2dTextPropDlgExt (a2dHabitat *habitat, wxWindow *parent, bool bGlobal, bool bFill, a2dFontInfoList *fontlist, bool bAllowLayerStyle=false) | |
| void | SetUnitsScale (double scale) |
| void | SetCustomColors (const a2dCustomColors &colors) |
| const a2dCustomColors & | a2dGetCustomColors () const |
| const a2dExtStroke & | GetExtStroke () const |
| void | SetExtStroke (const a2dExtStroke &extStroke) |
| const a2dExtFill & | GetExtFill () const |
| void | SetExtFill (const a2dExtFill &extFill) |
| const a2dTextChanges & | GetExtFont () const |
| void | SetExtFont (const a2dTextChanges &extFont) |
| void | OnChangeFont () |
| User interface event handler. | |
| void | OnChangeFontType (wxCommandEvent &event) |
| User interface event handler. | |
| void | OnChangeFontName (wxCommandEvent &event) |
| User interface event handler. | |
| void | OnChangeFontStyle (wxCommandEvent &event) |
| User interface event handler. | |
| void | OnChangeFontSize (wxCommandEvent &event) |
| User interface event handler. | |
| void | OnChangeFontSizeList (wxCommandEvent &event) |
| User interface event handler. | |
| void | OnSearchPath (wxCommandEvent &event) |
| User interface event handler. | |
| void | OnAlignment (wxCommandEvent &event) |
| User interface event handler. | |
| void | OnTextflags (wxCommandEvent &event) |
| User interface event handler. | |
| void | OnSize (wxSizeEvent &event) |
| User interface event handler. | |
| void | OnColourChange (wxCommandEvent &event) |
| User interface event handler. | |
Extended font dialog for selection of text objects
Create the list of fonts (stored in a2dTextChanges) and filter them
<code>
const int TNumFonts = 16;
const wxString TFonts[TNumFonts] = { wxT("Arial"), wxT("Comic Sans MS"), wxT("Georgia"), wxT("Impact"), wxT("Lucida Sans"), wxT("Palatino Linotype"), wxT("Tahoma"), wxT("Times New Roman"), wxT("Trebuchet MS"), wxT("Verdana"), wxT("Liberation Sans"), wxT("Liberation Serif"), wxT("Liberation Mono"), wxT("DejaVu Sans"), wxT("DejaVu Sans Mono"), wxT("DejaVu Serif") };
wxArrayString filterlist(TNumFonts, TFonts);
a2dTextChanges::InitialiseFontList(filterlist, DEFAULT_FONTTYPE); // create the list of available fonts
a2dTextChanges::InitialiseFontList(); // create the list of available fonts