1 \section{\class{wxFontData
}}\label{wxfontdata
}
3 \overview{wxFontDialog overview
}{wxfontdialogoverview
}
5 This class holds a variety of information related to font dialogs.
7 \wxheading{Derived from
}
9 \helpref{wxObject
}{wxobject
}
13 \helpref{Overview
}{wxfontdialogoverview
},
\helpref{wxFontDialog
}{wxfontdialog
}
15 \latexignore{\rtfignore{\wxheading{Members
}}}
17 \membersection{wxFontData::wxFontData
}
19 \func{}{wxFontData
}{\void}
21 Constructor. Initializes
{\it fontColour
} to black,
{\it showHelp
} to black,
22 \rtfsp{\it allowSymbols
} to TRUE,
{\it enableEffects
} to TRUE,
23 \rtfsp{\it minSize
} to
0 and
{\it maxSize
} to
0.
25 \membersection{wxFontData::
\destruct{wxFontData
}}
27 \func{}{\destruct{wxFontData
}}{\void}
31 \membersection{wxFontData::EnableEffects
}
33 \func{void
}{EnableEffects
}{\param{bool
}{ enable
}}
35 Enables or disables `effects' under MS Windows only. This refers to the
36 controls for manipulating colour, strikeout and underline properties.
38 The default value is TRUE.
40 \membersection{wxFontData::GetAllowSymbols
}
42 \func{bool
}{GetAllowSymbols
}{\void}
44 Under MS Windows, returns a flag determining whether symbol fonts can be selected. Has no
45 effect on other platforms.
47 The default value is TRUE.
49 \membersection{wxFontData::GetColour
}
51 \func{wxColour\&
}{GetColour
}{\void}
53 Gets the colour associated with the font dialog.
55 The default value is black.
57 \membersection{wxFontData::GetChosenFont
}
59 \func{wxFont
}{GetChosenFont
}{\void}
61 Gets the font chosen by the user. If the user pressed OK (wxFontDialog::Show returned TRUE), this returns
62 a new font which is now `owned' by the application, and should be deleted
63 if not required. If the user pressed Cancel (wxFontDialog::Show returned FALSE) or
64 the colour dialog has not been invoked yet, this will return NULL.
66 \membersection{wxFontData::GetEnableEffects
}
68 \func{bool
}{GetEnableEffects
}{\void}
70 Determines whether `effects' are enabled under Windows. This refers to the
71 controls for manipulating colour, strikeout and underline properties.
73 The default value is TRUE.
75 \membersection{wxFontData::GetInitialFont
}
77 \func{wxFont
}{GetInitialFont
}{\void}
79 Gets the font that will be initially used by the font dialog. This should have
80 previously been set by the application.
82 \membersection{wxFontData::GetShowHelp
}
84 \func{bool
}{GetShowHelp
}{\void}
86 Returns TRUE if the Help button will be shown (Windows only).
88 The default value is FALSE.
90 \membersection{wxFontData::SetAllowSymbols
}
92 \func{void
}{SetAllowSymbols
}{\param{bool
}{ allowSymbols
}}
94 Under MS Windows, determines whether symbol fonts can be selected. Has no
95 effect on other platforms.
97 The default value is TRUE.
99 \membersection{wxFontData::SetChosenFont
}
101 \func{void
}{SetChosenFont
}{\param{const wxFont\&
}{font
}}
103 Sets the font that will be returned to the user (for internal use only).
105 \membersection{wxFontData::SetColour
}
107 \func{void
}{SetColour
}{\param{const wxColour\&
}{ colour
}}
109 Sets the colour that will be used for the font foreground colour.
111 The default colour is black.
113 \membersection{wxFontData::SetInitialFont
}
115 \func{void
}{SetInitialFont
}{\param{const wxFont\&
}{font
}}
117 Sets the font that will be initially used by the font dialog.
119 \membersection{wxFontData::SetRange
}
121 \func{void
}{SetRange
}{\param{int
}{ min
},
\param{int
}{ max
}}
123 Sets the valid range for the font point size (Windows only).
125 The default is
0,
0 (unrestricted range).
127 \membersection{wxFontData::SetShowHelp
}
129 \func{void
}{SetShowHelp
}{\param{bool
}{ showHelp
}}
131 Determines whether the Help button will be displayed in the font dialog (Windows only).
133 The default value is FALSE.
135 \membersection{wxFontData::operator $=$
}
137 \func{void
}{operator $=$
}{\param{const wxFontData\&
}{ data
}}
139 Assingment operator for the font data.
141 \section{\class{wxFontDialog
}}\label{wxfontdialog
}
143 This class represents the font chooser dialog.
145 \wxheading{Derived from
}
147 \helpref{wxDialog
}{wxdialog
}\\
148 \helpref{wxWindow
}{wxwindow
}\\
149 \helpref{wxEvtHandler
}{wxevthandler
}\\
150 \helpref{wxObject
}{wxobject
}
154 \helpref{Overview
}{wxfontdialogoverview
},
\helpref{wxFontData
}{wxfontdata
}
156 \latexignore{\rtfignore{\wxheading{Members
}}}
158 \membersection{wxFontDialog::wxFontDialog
}
160 \func{}{wxFontDialog
}{\param{wxWindow*
}{parent
},
\param{wxFontData*
}{data = NULL
}}
162 Constructor. Pass a parent window, and optionally a pointer to a block of font
163 data, which will be copied to the font dialog's font data.
165 \membersection{wxFontDialog::
\destruct{wxFontDialog
}}
167 \func{}{\destruct{wxFontDialog
}}{\void}
171 \membersection{wxFontDialog::GetFontData
}
173 \func{wxFontData\&
}{GetFontData
}{\void}
175 Returns the
\helpref{font data
}{wxfontdata
} associated with the font dialog.
177 \membersection{wxFontDialog::ShowModal
}
179 \func{int
}{ShowModal
}{\void}
181 Shows the dialog, returning wxID
\_OK if the user pressed Ok, and wxID
\_CANCEL
184 If the user cancels the dialog (ShowModal returns wxID
\_CANCEL), no font will be
185 created. If the user presses OK (ShowModal returns wxID
\_OK), a new wxFont will
186 be created and stored in the font dialog's wxFontData structure.