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

📄 font.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
📖 第 1 页 / 共 2 页
字号:
family identifiers.\wxheading{See also}\helpref{wxFont::SetFamily}{wxfontsetfamily}\membersection{wxFont::GetNativeFontInfoDesc}\label{wxfontgetnativefontinfodesc}\constfunc{wxString}{GetNativeFontInfoDesc}{\void}Returns the platform-dependent string completely describing this font.Returned string is always non-empty.Note that the returned string is not meant to be shown or edited by the user: a typicaluse of this function is for serializing in string-form a wxFont object.\wxheading{See also}\helpref{wxFont::SetNativeFontInfo}{wxfontsetnativefontinfo},\helpref{wxFont::GetNativeFontInfoUserDesc}{wxfontgetnativefontinfouserdesc}\membersection{wxFont::GetNativeFontInfoUserDesc}\label{wxfontgetnativefontinfouserdesc}\func{wxString}{GetNativeFontInfoUserDesc}{\void}Returns a user-friendly string for this font object. Returned string is always non-empty.Some examples of the formats of returned strings (which are platform-dependent) are in \helpref{SetNativeFontInfoUserDesc}{wxfontsetnativefontinfouserdesc}.\wxheading{See also}\helpref{wxFont::GetNativeFontInfoDesc}{wxfontgetnativefontinfodesc}\membersection{wxFont::GetPointSize}\label{wxfontgetpointsize}\constfunc{int}{GetPointSize}{\void}Gets the point size.\wxheading{See also}\helpref{wxFont::SetPointSize}{wxfontsetpointsize}\membersection{wxFont::GetStyle}\label{wxfontgetstyle}\constfunc{int}{GetStyle}{\void}Gets the font style. See \helpref{wxFont::wxFont}{wxfontctor} for a list of validstyles.\wxheading{See also}\helpref{wxFont::SetStyle}{wxfontsetstyle}\membersection{wxFont::GetUnderlined}\label{wxfontgetunderlined}\constfunc{bool}{GetUnderlined}{\void}Returns true if the font is underlined, false otherwise.\wxheading{See also}\helpref{wxFont::SetUnderlined}{wxfontsetunderlined}\membersection{wxFont::GetWeight}\label{wxfontgetweight}\constfunc{wxFontWeight}{GetWeight}{\void}Gets the font weight. See \helpref{wxFont::wxFont}{wxfontctor} for a list of validweight identifiers.\wxheading{See also}\helpref{wxFont::SetWeight}{wxfontsetweight}\membersection{wxFont::New}\label{wxfontnew}\func{static wxFont *}{New}{\param{int}{ pointSize}, \param{wxFontFamily}{ family}, \param{int}{ style}, \param{wxFontWeight}{ weight}, \param{const bool}{ underline = false}, \param{const wxString\& }{faceName = ""}, \param{wxFontEncoding }{encoding = wxFONTENCODING\_DEFAULT}}\func{static wxFont *}{New}{\param{int}{ pointSize}, \param{wxFontFamily}{ family}, \param{int}{ flags = \texttt{wxFONTFLAG\_DEFAULT}}, \param{const wxString\& }{faceName = ""}, \param{wxFontEncoding }{encoding = wxFONTENCODING\_DEFAULT}}\func{static wxFont *}{New}{\param{const wxSize\&}{ pixelSize}, \param{wxFontFamily}{ family}, \param{int}{ style}, \param{wxFontWeight}{ weight}, \param{const bool}{ underline = false}, \param{const wxString\& }{faceName = ""}, \param{wxFontEncoding }{encoding = wxFONTENCODING\_DEFAULT}}\func{static wxFont *}{New}{\param{const wxSize\&}{ pixelSize}, \param{wxFontFamily}{ family}, \param{int}{ flags = \texttt{wxFONTFLAG\_DEFAULT}}, \param{const wxString\& }{faceName = ""}, \param{wxFontEncoding }{encoding = wxFONTENCODING\_DEFAULT}}These functions take the same parameters as \helpref{wxFontconstructor}{wxfontctor} and return a new font object allocated on the heap.Using \texttt{New()} is currently the only way to directly create a font withthe given size in pixels on platforms other than wxMSW.\membersection{wxFont::IsOk}\label{wxfontisok}\constfunc{bool}{IsOk}{\void}Returns {\tt true} if this object is a valid font, {\tt false} otherwise.\membersection{wxFont::SetDefaultEncoding}\label{wxfontsetdefaultencoding}\func{static void}{SetDefaultEncoding}{\param{wxFontEncoding }{encoding}}Sets the default font encoding.\wxheading{See also}\helpref{Font encoding overview}{wxfontencodingoverview},\helpref{GetDefaultEncoding}{wxfontgetdefaultencoding}\membersection{wxFont::SetFaceName}\label{wxfontsetfacename}\func{bool}{SetFaceName}{\param{const wxString\& }{faceName}}Sets the facename for the font.Returns \true if the given face name exists; \false otherwise.\wxheading{Parameters}\docparam{faceName}{A valid facename, which should be on the end-user's system.}\wxheading{Remarks}To avoid portability problems, don't rely on a specific face, but specify the font familyinstead or as well. A suitable font will be found on the end-user's system. If both thefamily and the facename are specified, wxWidgets will first search for the specific face,and then for a font belonging to the same family.\wxheading{See also}\helpref{wxFont::GetFaceName}{wxfontgetfacename}, \helpref{wxFont::SetFamily}{wxfontsetfamily}\membersection{wxFont::SetFamily}\label{wxfontsetfamily}\func{void}{SetFamily}{\param{wxFontFamily}{ family}}Sets the font family.\wxheading{Parameters}\docparam{family}{One of:\twocolwidtha{5cm}\begin{twocollist}\itemsep=0pt\twocolitem{{\bf wxFONTFAMILY\_DEFAULT}}{Chooses a default font.}\twocolitem{{\bf wxFONTFAMILY\_DECORATIVE}}{A decorative font.}\twocolitem{{\bf wxFONTFAMILY\_ROMAN}}{A formal, serif font.}\twocolitem{{\bf wxFONTFAMILY\_SCRIPT}}{A handwriting font.}\twocolitem{{\bf wxFONTFAMILY\_SWISS}}{A sans-serif font.}\twocolitem{{\bf wxFONTFAMILY\_MODERN}}{A fixed pitch font.}\twocolitem{{\bf wxFONTFAMILY\_TELETYPE}}{A teletype font.}\end{twocollist}}\wxheading{See also}\helpref{wxFont::GetFamily}{wxfontgetfamily}, \helpref{wxFont::SetFaceName}{wxfontsetfacename}\membersection{wxFont::SetNativeFontInfo}\label{wxfontsetnativefontinfo}\func{bool}{SetNativeFontInfo}{\param{const wxString\& }{info}}Creates the font corresponding to the given native font description string and returns \true ifthe creation was successful.which must have been previously returned by\helpref{GetNativeFontInfoDesc}{wxfontgetnativefontinfodesc}. If the string isinvalid, font is unchanged. This function is typically used for de-serializing a wxFontobject previously saved in a string-form.\wxheading{See also}\helpref{wxFont::SetNativeFontInfoUserDesc}{wxfontsetnativefontinfouserdesc}\membersection{wxFont::SetNativeFontInfoUserDesc}\label{wxfontsetnativefontinfouserdesc}\func{bool}{SetNativeFontInfoUserDesc}{\param{const wxString\& }{info}}Creates the font corresponding to the given native font description string and returns \true ifthe creation was successful.Unlike \helpref{SetNativeFontInfo}{wxfontsetnativefontinfo}, this function acceptsstrings which are user-friendly.Examples of accepted string formats are:\twocolwidtha{15cm}\begin{twocollist}\itemsep=0pt\twocolitem{Generic syntax}{Example}\twocolitem{on {\bf wxGTK2}: {\tt $[FACE-NAME]$ $[bold]$ $[oblique|italic]$ $[POINTSIZE]$}}{Monospace bold 10}\twocolitem{on {\bf wxMSW}: {\tt $[light|bold]$ $[italic]$ $[FACE-NAME]$ $[POINTSIZE]$ $[ENCODING]$}}{Tahoma 10 WINDOWS-1252}\twocolitem{on {\bf wxMac}: FIXME}{FIXME}\end{twocollist}For more detailed information about the allowed syntaxes you can look at the documentation of the native API used for font-rendering (e.g. \urlref{pango\_font\_description\_from\_string}{http://developer.gnome.org/doc/API/2.0/pango/pango-Fonts.html\#pango-font-description-from-string}).\wxheading{See also}\helpref{wxFont::SetNativeFontInfo}{wxfontsetnativefontinfo}\membersection{wxFont::SetPointSize}\label{wxfontsetpointsize}\func{void}{SetPointSize}{\param{int}{ pointSize}}Sets the point size.\wxheading{Parameters}\docparam{pointSize}{Size in points.}\wxheading{See also}\helpref{wxFont::GetPointSize}{wxfontgetpointsize}\membersection{wxFont::SetStyle}\label{wxfontsetstyle}\func{void}{SetStyle}{\param{int}{ style}}Sets the font style.\wxheading{Parameters}\docparam{style}{One of {\bf wxFONTSTYLE\_NORMAL}, {\bf wxFONTSTYLE\_SLANT} and {\bf wxFONTSTYLE\_ITALIC}.}\wxheading{See also}\helpref{wxFont::GetStyle}{wxfontgetstyle}\membersection{wxFont::SetUnderlined}\label{wxfontsetunderlined}\func{void}{SetUnderlined}{\param{const bool}{ underlined}}Sets underlining.\wxheading{Parameters}\docparam{underlining}{true to underline, false otherwise.}\wxheading{See also}\helpref{wxFont::GetUnderlined}{wxfontgetunderlined}\membersection{wxFont::SetWeight}\label{wxfontsetweight}\func{void}{SetWeight}{\param{wxFontWeight}{ weight}}Sets the font weight.\wxheading{Parameters}\docparam{weight}{One of:\twocolwidtha{5cm}\begin{twocollist}\itemsep=0pt\twocolitem{{\bf wxFONTWEIGHT\_NORMAL}}{Normal font.}\twocolitem{{\bf wxFONTWEIGHT\_LIGHT}}{Light font.}\twocolitem{{\bf wxFONTWEIGHT\_BOLD}}{Bold font.}\end{twocollist}}\wxheading{See also}\helpref{wxFont::GetWeight}{wxfontgetweight}\membersection{wxFont::operator $=$}\label{wxfontassignment}\func{wxFont\&}{operator $=$}{\param{const wxFont\& }{font}}Assignment operator, using \helpref{reference counting}{trefcount}.\membersection{wxFont::operator $==$}\label{wxfontequals}\func{bool}{operator $==$}{\param{const wxFont\& }{font}}Equality operator.See \helpref{reference-counted object comparison}{refcountequality} for more info.\membersection{wxFont::operator $!=$}\label{wxfontnotequals}\func{bool}{operator $!=$}{\param{const wxFont\& }{font}}Inequality operator.See \helpref{reference-counted object comparison}{refcountequality} for more info.

⌨️ 快捷键说明

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