]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/fontpicker.h
removing outdated files on mac
[wxWidgets.git] / include / wx / gtk / fontpicker.h
CommitLineData
ec376c8f
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/fontpicker.h
3// Purpose: wxFontButton header
4// Author: Francesco Montorsi
5// Modified by:
6// Created: 14/4/2006
7// Copyright: (c) Francesco Montorsi
8// RCS-ID: $Id$
9// Licence: wxWindows Licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GTK_FONTPICKER_H_
13#define _WX_GTK_FONTPICKER_H_
14
c0a1e268
MR
15#include "wx/button.h"
16
ec376c8f
VZ
17//-----------------------------------------------------------------------------
18// wxFontButton
19//-----------------------------------------------------------------------------
20
ff654490
VZ
21class WXDLLIMPEXP_CORE wxFontButton : public wxButton,
22 public wxFontPickerWidgetBase
ec376c8f
VZ
23{
24public:
25 wxFontButton() {}
26 wxFontButton(wxWindow *parent,
27 wxWindowID id,
305329c2 28 const wxFont& initial = wxNullFont,
ec376c8f
VZ
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize,
31 long style = wxFONTBTN_DEFAULT_STYLE,
32 const wxValidator& validator = wxDefaultValidator,
33 const wxString& name = wxFontPickerWidgetNameStr)
34 {
35 Create(parent, id, initial, pos, size, style, validator, name);
36 }
37
ec376c8f
VZ
38 bool Create(wxWindow *parent,
39 wxWindowID id,
305329c2 40 const wxFont& initial = wxNullFont,
ec376c8f
VZ
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize,
43 long style = wxFONTBTN_DEFAULT_STYLE,
44 const wxValidator& validator = wxDefaultValidator,
45 const wxString& name = wxFontPickerWidgetNameStr);
46
ff654490
VZ
47 virtual ~wxFontButton();
48
c757b5fe 49protected:
ec376c8f
VZ
50 void UpdateFont();
51
52
53public: // used by the GTK callback only
54
55 void SetNativeFontInfo(const gchar *gtkdescription)
56 { m_selectedFont.SetNativeFontInfo(wxString::FromAscii(gtkdescription)); }
57
ec376c8f
VZ
58private:
59 DECLARE_DYNAMIC_CLASS(wxFontButton)
60};
61
62#endif // _WX_GTK_FONTPICKER_H_
63