1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/fontpicker.h
3 // Purpose: wxFontButton header
4 // Author: Francesco Montorsi
7 // Copyright: (c) Francesco Montorsi
9 // Licence: wxWindows Licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_GTK_FONTPICKER_H_
13 #define _WX_GTK_FONTPICKER_H_
15 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxFontButton
: public wxButton
,
20 public wxFontPickerWidgetBase
24 wxFontButton(wxWindow
*parent
,
26 const wxFont
& initial
= wxNullFont
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
29 long style
= wxFONTBTN_DEFAULT_STYLE
,
30 const wxValidator
& validator
= wxDefaultValidator
,
31 const wxString
& name
= wxFontPickerWidgetNameStr
)
33 Create(parent
, id
, initial
, pos
, size
, style
, validator
, name
);
36 bool Create(wxWindow
*parent
,
38 const wxFont
& initial
= wxNullFont
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
41 long style
= wxFONTBTN_DEFAULT_STYLE
,
42 const wxValidator
& validator
= wxDefaultValidator
,
43 const wxString
& name
= wxFontPickerWidgetNameStr
);
45 virtual ~wxFontButton();
51 public: // used by the GTK callback only
53 void SetNativeFontInfo(const gchar
*gtkdescription
)
54 { m_selectedFont
.SetNativeFontInfo(wxString::FromAscii(gtkdescription
)); }
57 DECLARE_DYNAMIC_CLASS(wxFontButton
)
60 #endif // _WX_GTK_FONTPICKER_H_