1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxFontData}}\label{wxfontdata}
|
|
|
|
|
|
|
|
\overview{wxFontDialog overview}{wxfontdialogoverview}
|
|
|
|
|
|
|
|
This class holds a variety of information related to font dialogs.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/cmndata.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
2004-09-26 07:52:11 -04:00
|
|
|
\helpref{Overview}{wxfontdialogoverview}, \helpref{wxFont}{wxfont}, \helpref{wxFontDialog}{wxfontdialog}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::wxFontData}\label{wxfontdatactor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{wxFontData}{\void}
|
|
|
|
|
|
|
|
Constructor. Initializes {\it fontColour} to black, {\it showHelp} to black,
|
2003-01-17 19:16:34 -05:00
|
|
|
\rtfsp{\it allowSymbols} to true, {\it enableEffects} to true,
|
1998-05-20 10:25:30 -04:00
|
|
|
\rtfsp{\it minSize} to 0 and {\it maxSize} to 0.
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::\destruct{wxFontData}}\label{wxfontdatadtor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{\destruct{wxFontData}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::EnableEffects}\label{wxfontdataenableeffects}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{EnableEffects}{\param{bool}{ enable}}
|
|
|
|
|
2004-11-07 00:38:58 -05:00
|
|
|
Enables or disables `effects' under MS Windows or generic only. This refers to the
|
1998-05-20 10:25:30 -04:00
|
|
|
controls for manipulating colour, strikeout and underline properties.
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
The default value is true.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::GetAllowSymbols}\label{wxfontdatagetallowsymbols}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{bool}{GetAllowSymbols}{\void}
|
|
|
|
|
|
|
|
Under MS Windows, returns a flag determining whether symbol fonts can be selected. Has no
|
|
|
|
effect on other platforms.
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
The default value is true.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::GetColour}\label{wxfontdatagetcolour}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{wxColour\&}{GetColour}{\void}
|
|
|
|
|
|
|
|
Gets the colour associated with the font dialog.
|
|
|
|
|
|
|
|
The default value is black.
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::GetChosenFont}\label{wxfontdatagetchosenfont}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{wxFont}{GetChosenFont}{\void}
|
|
|
|
|
2004-02-29 08:02:01 -05:00
|
|
|
Gets the font chosen by the user if the user pressed OK (wxFontDialog::ShowModal returned wxID\_OK).
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::GetEnableEffects}\label{wxfontdatagetenableeffects}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{bool}{GetEnableEffects}{\void}
|
|
|
|
|
|
|
|
Determines whether `effects' are enabled under Windows. This refers to the
|
|
|
|
controls for manipulating colour, strikeout and underline properties.
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
The default value is true.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::GetInitialFont}\label{wxfontdatagetinitialfont}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{wxFont}{GetInitialFont}{\void}
|
|
|
|
|
|
|
|
Gets the font that will be initially used by the font dialog. This should have
|
|
|
|
previously been set by the application.
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::GetShowHelp}\label{wxfontdatagetshowhelp}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{bool}{GetShowHelp}{\void}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true if the Help button will be shown (Windows only).
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
The default value is false.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::SetAllowSymbols}\label{wxfontdatasetallowsymbols}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{SetAllowSymbols}{\param{bool}{ allowSymbols}}
|
|
|
|
|
|
|
|
Under MS Windows, determines whether symbol fonts can be selected. Has no
|
|
|
|
effect on other platforms.
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
The default value is true.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::SetChosenFont}\label{wxfontdatasetchosenfont}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{SetChosenFont}{\param{const wxFont\& }{font}}
|
|
|
|
|
|
|
|
Sets the font that will be returned to the user (for internal use only).
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::SetColour}\label{wxfontdatasetcolour}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{SetColour}{\param{const wxColour\&}{ colour}}
|
|
|
|
|
|
|
|
Sets the colour that will be used for the font foreground colour.
|
|
|
|
|
|
|
|
The default colour is black.
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::SetInitialFont}\label{wxfontdatasetinitialfont}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{SetInitialFont}{\param{const wxFont\&}{font}}
|
|
|
|
|
|
|
|
Sets the font that will be initially used by the font dialog.
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::SetRange}\label{wxfontdatasetrange}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{SetRange}{\param{int}{ min}, \param{int}{ max}}
|
|
|
|
|
|
|
|
Sets the valid range for the font point size (Windows only).
|
|
|
|
|
|
|
|
The default is 0, 0 (unrestricted range).
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::SetShowHelp}\label{wxfontdatasetshowhelp}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{SetShowHelp}{\param{bool}{ showHelp}}
|
|
|
|
|
|
|
|
Determines whether the Help button will be displayed in the font dialog (Windows only).
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
The default value is false.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontData::operator $=$}\label{wxfontdataassign}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{void}{operator $=$}{\param{const wxFontData\&}{ data}}
|
|
|
|
|
2002-06-07 16:15:28 -04:00
|
|
|
Assignment operator for the font data.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\section{\class{wxFontDialog}}\label{wxfontdialog}
|
|
|
|
|
|
|
|
This class represents the font chooser dialog.
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxDialog}{wxdialog}\\
|
|
|
|
\helpref{wxWindow}{wxwindow}\\
|
|
|
|
\helpref{wxEvtHandler}{wxevthandler}\\
|
|
|
|
\helpref{wxObject}{wxobject}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/fontdlg.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
2002-01-21 12:52:01 -05:00
|
|
|
\helpref{Overview}{wxfontdialogoverview},\\
|
|
|
|
\helpref{wxFontData}{wxfontdata},\\
|
|
|
|
\helpref{wxGetFontFromUser}{wxgetfontfromuser}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontDialog::wxFontDialog}\label{wxfontdialogctor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-05-12 15:35:33 -04:00
|
|
|
\func{}{wxFontDialog}{\void}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-05-12 15:35:33 -04:00
|
|
|
\func{}{wxFontDialog}{\param{wxWindow* }{parent}}
|
|
|
|
|
|
|
|
\func{}{wxFontDialog}{\param{wxWindow* }{parent}, \param{const wxFontData\& }{data}}
|
|
|
|
|
|
|
|
Constructor. Pass a parent window, and optionally the
|
|
|
|
\helpref{font data}{wxfontdata} object to be used to initialize the dialog
|
|
|
|
controls. If the default constructor is used,
|
|
|
|
\helpref{Create()}{wxfontdialogcreate} must be called before the dialog can be
|
|
|
|
shown.
|
|
|
|
|
|
|
|
\membersection{wxFontDialog::Create}\label{wxfontdialogcreate}
|
|
|
|
|
|
|
|
\func{bool}{Create}{\void}
|
|
|
|
|
|
|
|
\func{bool}{Create}{\param{wxWindow* }{parent}}
|
|
|
|
|
|
|
|
\func{bool}{Create}{\param{wxWindow* }{parent}, \param{const wxFontData\& }{data}}
|
|
|
|
|
|
|
|
Creates the dialog if it the wxFontDialog object had been initialized using the
|
2003-01-17 19:16:34 -05:00
|
|
|
default constructor. Returns {\tt true} on success and {\tt false} if an error
|
2002-05-12 15:35:33 -04:00
|
|
|
occured.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontDialog::\destruct{wxFontDialog}}\label{wxfontdialogdtor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{\destruct{wxFontDialog}}{\void}
|
|
|
|
|
|
|
|
Destructor.
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontDialog::GetFontData}\label{wxfontdialoggetfontdata}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-05-12 15:35:33 -04:00
|
|
|
\constfunc{const wxFontData\&}{GetFontData}{\void}
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\func{wxFontData\&}{GetFontData}{\void}
|
|
|
|
|
|
|
|
Returns the \helpref{font data}{wxfontdata} associated with the font dialog.
|
|
|
|
|
2004-09-29 07:25:34 -04:00
|
|
|
\membersection{wxFontDialog::ShowModal}\label{wxfontdialogshowmodal}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{int}{ShowModal}{\void}
|
|
|
|
|
2002-05-12 15:35:33 -04:00
|
|
|
Shows the dialog, returning {\tt wxID\_OK} if the user pressed Ok, and
|
|
|
|
{\tt wxID\_CANCEL} otherwise.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
2002-05-12 15:35:33 -04:00
|
|
|
If the user cancels the dialog (ShowModal returns {\tt wxID\_CANCEL}), no font
|
|
|
|
will be created. If the user presses OK, a new wxFont will be created and
|
|
|
|
stored in the font dialog's wxFontData structure.
|
1998-05-20 10:25:30 -04:00
|
|
|
|