]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/fontdlg.h
cleanup - remove duplicate decl., added #include, etc.
[wxWidgets.git] / include / wx / mac / carbon / fontdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: fontdlg.h
3 // Purpose: wxFontDialog class using fonts window services (10.2+).
4 // Author: Ryan Norton
5 // Modified by:
6 // Created: 2004-09-25
7 // RCS-ID: $Id$
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_FONTDLG_H_
13 #define _WX_FONTDLG_H_
14
15 #include "wx/dialog.h"
16 #include "wx/cmndata.h"
17
18 /*
19 * Font dialog
20 */
21
22 class WXDLLEXPORT wxFontDialog: public wxDialog
23 {
24 DECLARE_DYNAMIC_CLASS(wxFontDialog)
25
26 public:
27 wxFontDialog();
28 wxFontDialog(wxWindow *parent, const wxFontData& data);
29 ~wxFontDialog();
30
31 bool Create(wxWindow *parent, const wxFontData& data);
32
33 int ShowModal();
34 wxFontData& GetFontData() { return m_fontData; }
35 bool IsShown() const;
36 void OnPanelClose();
37 void SetData(const wxFontData& data);
38
39 protected:
40 wxWindow* m_dialogParent;
41 wxFontData m_fontData;
42 void* m_pEventHandlerRef;
43 };
44
45 #endif
46 // _WX_FONTDLG_H_
47