]>
Commit | Line | Data |
---|---|---|
1 | \section{\class{wxFontList}}\label{wxfontlist} | |
2 | ||
3 | A font list is a list containing all fonts which have been created. There | |
4 | is only one instance of this class: {\bf wxTheFontList}. Use this object to search | |
5 | for a previously created font of the desired type and create it if not already found. | |
6 | In some windowing systems, the font may be a scarce resource, so it is best to | |
7 | reuse old resources if possible. When an application finishes, all fonts will be | |
8 | deleted and their resources freed, eliminating the possibility of `memory leaks'. | |
9 | ||
10 | \wxheading{Derived from} | |
11 | ||
12 | \helpref{wxList}{wxlist}\\ | |
13 | \helpref{wxObject}{wxobject} | |
14 | ||
15 | \wxheading{See also} | |
16 | ||
17 | \helpref{wxFont}{wxfont} | |
18 | ||
19 | \latexignore{\rtfignore{\wxheading{Members}}} | |
20 | ||
21 | \membersection{wxFontList::wxFontList} | |
22 | ||
23 | \func{}{wxFontList}{\void} | |
24 | ||
25 | Constructor. The application should not construct its own font list: | |
26 | use the object pointer {\bf wxTheFontList}. | |
27 | ||
28 | \membersection{wxFontList::AddFont} | |
29 | ||
30 | \func{void}{AddFont}{\param{wxFont *}{font}} | |
31 | ||
32 | Used by wxWindows to add a font to the list, called in the font constructor. | |
33 | ||
34 | \membersection{wxFontList::FindOrCreateFont}\label{findorcreatefont} | |
35 | ||
36 | \func{wxFont *}{FindOrCreateFont}{\param{int}{ point\_size}, \param{int}{ family}, \param{int}{ style}, \param{int}{ weight}, \param{bool}{ underline = FALSE}, | |
37 | \param{const wxString\& }{facename = NULL}} | |
38 | ||
39 | Finds a font of the given specification, or creates one and adds it to the list. See the \helpref{wxFont constructor}{wxfontconstr} for | |
40 | details of the arguments. | |
41 | ||
42 | \membersection{wxFontList::RemoveFont} | |
43 | ||
44 | \func{void}{RemoveFont}{\param{wxFont *}{font}} | |
45 | ||
46 | Used by wxWindows to remove a font from the list. | |
47 | ||
48 |