]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/fontlist.tex
define _HPUX_SOURCE under HP-UX, otherwise many things are not defined in standard...
[wxWidgets.git] / docs / latex / wx / fontlist.tex
CommitLineData
a660d684
KB
1\section{\class{wxFontList}}\label{wxfontlist}
2
3A font list is a list containing all fonts which have been created. There
4is only one instance of this class: {\bf wxTheFontList}. Use this object to search
5for a previously created font of the desired type and create it if not already found.
6In some windowing systems, the font may be a scarce resource, so it is best to
7reuse old resources if possible. When an application finishes, all fonts will be
8deleted 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
954b8ae6
JS
15\wxheading{Include files}
16
17<wx/gdicmn.h>
18
a660d684
KB
19\wxheading{See also}
20
21\helpref{wxFont}{wxfont}
22
23\latexignore{\rtfignore{\wxheading{Members}}}
24
f0e8a2d0 25\membersection{wxFontList::wxFontList}\label{wxfontlistctor}
a660d684
KB
26
27\func{}{wxFontList}{\void}
28
29Constructor. The application should not construct its own font list:
30use the object pointer {\bf wxTheFontList}.
31
f0e8a2d0 32\membersection{wxFontList::AddFont}\label{wxfontlistaddfont}
a660d684
KB
33
34\func{void}{AddFont}{\param{wxFont *}{font}}
35
fc2171bd 36Used by wxWidgets to add a font to the list, called in the font constructor.
a660d684
KB
37
38\membersection{wxFontList::FindOrCreateFont}\label{findorcreatefont}
39
cc81d32f 40\func{wxFont *}{FindOrCreateFont}{\param{int}{ point\_size}, \param{int}{ family}, \param{int}{ style}, \param{int}{ weight}, \param{bool}{ underline = false},
605d715d 41 \param{const wxString\& }{facename = NULL}, \param{wxFontEncoding }{encoding = wxFONTENCODING\_DEFAULT}{}}
a660d684 42
b236c10f 43Finds a font of the given specification, or creates one and adds it to the list. See the \helpref{wxFont constructor}{wxfontctor} for
a660d684
KB
44details of the arguments.
45
f0e8a2d0 46\membersection{wxFontList::RemoveFont}\label{wxfontlistremovefont}
a660d684
KB
47
48\func{void}{RemoveFont}{\param{wxFont *}{font}}
49
fc2171bd 50Used by wxWidgets to remove a font from the list.
a660d684
KB
51
52