X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a44f3b5a890fbb2a88ef9adafd94f662e1664889..7344108e8a129a3f9b4df5ab0f98a1713db03b89:/interface/wx/fontpicker.h diff --git a/interface/wx/fontpicker.h b/interface/wx/fontpicker.h index 33497c5bf1..e354fc3742 100644 --- a/interface/wx/fontpicker.h +++ b/interface/wx/fontpicker.h @@ -3,9 +3,19 @@ // Purpose: interface of wxFontPickerCtrl // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// + +#define wxFNTP_FONTDESC_AS_LABEL 0x0008 +#define wxFNTP_USEFONT_FOR_LABEL 0x0010 +#define wxFONTBTN_DEFAULT_STYLE (wxFNTP_FONTDESC_AS_LABEL | wxFNTP_USEFONT_FOR_LABEL) +#define wxFNTP_USE_TEXTCTRL (wxPB_USE_TEXTCTRL) +#define wxFNTP_DEFAULT_STYLE (wxFNTP_FONTDESC_AS_LABEL|wxFNTP_USEFONT_FOR_LABEL) + +wxEventType wxEVT_COMMAND_FONTPICKER_CHANGED; + + /** @class wxFontPickerCtrl @@ -33,7 +43,7 @@ Uses the currently selected font to draw the label of the button. @endStyleTable - @beginEventTable{wxFontPickerEvent} + @beginEventEmissionTable{wxFontPickerEvent} @event{EVT_FONTPICKER_CHANGED(id, func)} The user changed the font selected in the control either using the button or using text control (see wxFNTP_USE_TEXTCTRL; note that in this case the @@ -49,6 +59,8 @@ class wxFontPickerCtrl : public wxPickerBase { public: + wxFontPickerCtrl(); + /** Initializes the object and calls Create() with all the parameters.