⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fontenum.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Name:        fontenum.tex%% Purpose:     wxFontEnumerator documentation%% Author:      Vadim Zeitlin%% Modified by:%% Created:     03.11.99%% RCS-ID:      $Id: fontenum.tex,v 1.12 2006/05/29 00:02:56 VZ Exp $%% Copyright:   (c) Vadim Zeitlin%% License:     wxWindows license%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\section{\class{wxFontEnumerator}}\label{wxfontenumerator}wxFontEnumerator enumerates either all available fonts on the system or onlythe ones with given attributes - either only fixed-width (suited for use inprograms such as terminal emulators and the like) or the fonts available inthe given \helpref{encoding}{wxfontencodingoverview}.To do this, you just have to call one of EnumerateXXX() functions - either \helpref{EnumerateFacenames}{wxfontenumeratorenumeratefacenames} or \helpref{EnumerateEncodings}{wxfontenumeratorenumerateencodings} and thecorresponding callback (\helpref{OnFacename}{wxfontenumeratoronfacename} or \helpref{OnFontEncoding}{wxfontenumeratoronfontencoding}) will be calledrepeatedly until either all fonts satisfying the specified criteria areexhausted or the callback returns false.\wxheading{Virtual functions to override}Either \helpref{OnFacename}{wxfontenumeratoronfacename} or \helpref{OnFontEncoding}{wxfontenumeratoronfontencoding} should be overriddendepending on whether you plan to call \helpref{EnumerateFacenames}{wxfontenumeratorenumeratefacenames} or \helpref{EnumerateEncodings}{wxfontenumeratorenumerateencodings}. Of course,if you call both of them, you should override both functions.\wxheading{Derived from}None\wxheading{Include files}<wx/fontenum.h>\wxheading{See also}\helpref{Font encoding overview}{wxfontencodingoverview}, \helpref{Font sample}{samplefont}, \helpref{wxFont}{wxfont}, \helpref{wxFontMapper}{wxfontmapper}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxFontEnumerator::EnumerateFacenames}\label{wxfontenumeratorenumeratefacenames}\func{virtual bool}{EnumerateFacenames}{    \param{wxFontEncoding }{encoding = wxFONTENCODING\_SYSTEM},    \param{bool }{fixedWidthOnly = false}}Call \helpref{OnFacename}{wxfontenumeratoronfacename} for each font whichsupports given encoding (only if it is not wxFONTENCODING\_SYSTEM) and is offixed width (if \arg{fixedWidthOnly} is true).Calling this function with default arguments will result in enumerating allfonts available on the system.\membersection{wxFontEnumerator::EnumerateEncodings}\label{wxfontenumeratorenumerateencodings}\func{virtual bool}{EnumerateEncodings}{\param{const wxString\& }{font = ""}}Call \helpref{OnFontEncoding}{wxfontenumeratoronfontencoding} for eachencoding supported by the given font - or for each encoding supported by atleast some font if {\it font} is not specified.\membersection{wxFontEnumerator::GetEncodings}\label{wxfontenumeratorgetencodings}\func{static wxArrayString}{GetEncodings}{\param{const wxString\&}{ facename = ""}}Return array of strings containing all encodings found by \helpref{EnumerateEncodings}{wxfontenumeratorenumerateencodings}.\membersection{wxFontEnumerator::GetFacenames}\label{wxfontenumeratorgetfacenames}\func{static wxArrayString}{GetFacenames}{\param{wxFontEncoding }{encoding = wxFONTENCODING\_SYSTEM}, \param{bool }{fixedWidthOnly = false}}Return array of strings containing all facenames found by \helpref{EnumerateFacenames}{wxfontenumeratorenumeratefacenames}.\membersection{wxFontEnumerator::IsValidFacename}\label{wxfontenumeratorisvalidfacename}\func{static bool}{IsValidFacename}{\param{const wxString \&}{ facename}}Returns \true if the given string is valid face name, i.e. it's the face name of an installedfont and it can safely be used with \helpref{wxFont::SetFaceName}{wxfontsetfacename}.\membersection{wxFontEnumerator::OnFacename}\label{wxfontenumeratoronfacename}\func{virtual bool}{OnFacename}{\param{const wxString\& }{font}}Called by \helpref{EnumerateFacenames}{wxfontenumeratorenumeratefacenames} foreach match. Return true to continue enumeration or false to stop it.\membersection{wxFontEnumerator::OnFontEncoding}\label{wxfontenumeratoronfontencoding}\func{virtual bool}{OnFontEncoding}{\param{const wxString\& }{font}, \param{const wxString\& }{encoding}}Called by \helpref{EnumerateEncodings}{wxfontenumeratorenumerateencodings} foreach match. Return true to continue enumeration or false to stop it.

⌨️ 快捷键说明

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