]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/fontdlg.h
reintroducing direct access, cleanup
[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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "fontdlg.h"
17 #endif
18
19 #include "wx/dialog.h"
20 #include "wx/cmndata.h"
21
22 /*
23 * Font dialog
24 */
25
26 class WXDLLEXPORT wxFontDialog: public wxDialog
27 {
28 DECLARE_DYNAMIC_CLASS(wxFontDialog)
29
30 public:
31 wxFontDialog();
32 wxFontDialog(wxWindow *parent, const wxFontData& data);
33 ~wxFontDialog();
34
35 bool Create(wxWindow *parent, const wxFontData& data);
36
37 int ShowModal();
38 wxFontData& GetFontData() { return m_fontData; }
39 bool IsShown() const;
40 void OnPanelClose();
41 void SetData(wxFontData& data);
42
43 protected:
44 wxWindow* m_dialogParent;
45 wxFontData m_fontData;
46 void* m_pEventHandlerRef;
47 };
48
49 #endif
50 // _WX_FONTDLG_H_
51