fontlist.tex

来自「很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.」· TEX 代码 · 共 40 行

TEX
40
字号
\section{\class{wxFontList}}\label{wxfontlist}A font list is a list containing all fonts which have been created. Thereis only one instance of this class: {\bf wxTheFontList}.  Use this object to searchfor a previously created font of the desired type and create it if not already found.In some windowing systems, the font may be a scarce resource, so it is best toreuse old resources if possible.  When an application finishes, all fonts will bedeleted and their resources freed, eliminating the possibility of `memory leaks'.\wxheading{Derived from}\helpref{wxList}{wxlist}\\\helpref{wxObject}{wxobject}\wxheading{Include files}<wx/gdicmn.h>\wxheading{See also}\helpref{wxFont}{wxfont}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxFontList::wxFontList}\label{wxfontlistctor}\func{}{wxFontList}{\void}Constructor. The application should not construct its own font list:use the object pointer {\bf wxTheFontList}.\membersection{wxFontList::FindOrCreateFont}\label{findorcreatefont}\func{wxFont *}{FindOrCreateFont}{\param{int}{ point\_size}, \param{int}{ family}, \param{int}{ style}, \param{int}{ weight}, \param{bool}{ underline = false}, \param{const wxString\& }{facename = NULL}, \param{wxFontEncoding }{encoding = wxFONTENCODING\_DEFAULT}{}}Finds a font of the given specification, or creates one and adds it to the list. See the \helpref{wxFont constructor}{wxfontctor} fordetails of the arguments.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?