]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/fontdlg.h
The rounded corners look really dumb at this size.
[wxWidgets.git] / include / wx / gtk1 / fontdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/fontdlg.h
3 // Purpose: wxFontDialog
4 // Author: Robert Roebling
5 // Created:
6 // Copyright: (c) Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GTK_FONTDLGH__
11 #define __GTK_FONTDLGH__
12
13 //-----------------------------------------------------------------------------
14 // wxFontDialog
15 //-----------------------------------------------------------------------------
16
17 class WXDLLIMPEXP_CORE wxFontDialog : public wxFontDialogBase
18 {
19 public:
20 wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ }
21 wxFontDialog(wxWindow *parent)
22 : wxFontDialogBase(parent) { Create(parent); }
23 wxFontDialog(wxWindow *parent, const wxFontData& data)
24 : wxFontDialogBase(parent, data) { Create(parent, data); }
25
26 virtual ~wxFontDialog();
27
28 // implementation only
29 void SetChosenFont(const char *name);
30
31 #if WXWIN_COMPATIBILITY_2_6
32 // deprecated interface, don't use
33 wxDEPRECATED( wxFontDialog(wxWindow *parent, const wxFontData *data) );
34 #endif // WXWIN_COMPATIBILITY_2_6
35
36 protected:
37 // create the GTK dialog
38 virtual bool DoCreate(wxWindow *parent);
39
40 private:
41 DECLARE_DYNAMIC_CLASS(wxFontDialog)
42 };
43
44 #if WXWIN_COMPATIBILITY_2_6
45 // deprecated interface, don't use
46 inline wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData *data)
47 : wxFontDialogBase(parent) { InitFontData(data); Create(parent); }
48 #endif // WXWIN_COMPATIBILITY_2_6
49
50 #endif