wxWidgets: /home/Hamish/wxwidgets/wxWidgets3.0-3.0.5.1-1.src/wxWidgets3.0-3.0.5.1-1.i686/src/wxWidgets-3.0.5.1/interface/wx/fontdlg.h File Reference

| Version: 3.0.5

Classes | Functions
fontdlg.h File Reference

## Classes
class | wxFontDialog
| This class represents the font chooser dialog. More...

## Functions
wxFont | wxGetFontFromUser (wxWindow *parent, const wxFont &fontInit, const wxString &caption=wxEmptyString)
| Shows the font selection dialog and returns the font selected by user or invalid font (use wxFont::IsOk() to test whether a font is valid) if the dialog was cancelled. More...

## Function Documentation

## ◆ wxGetFontFromUser()

wxFont wxGetFontFromUser | ( | wxWindow * | parent,
|  | const wxFont & | fontInit,
|  | const wxString & | caption = `wxEmptyString`
| ) |  |

Shows the font selection dialog and returns the font selected by user or invalid font (use wxFont::IsOk() to test whether a font is valid) if the dialog was cancelled.

Parameters

  parent | The parent window for the font selection dialog.
  fontInit | If given, this will be the font initially selected in the dialog.
  caption | If given, this will be used for the dialog caption.

Include file:

    #include <wx/fontdlg.h>