X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9453cf2bd702241fabc417e9dd5cd7422bcd9966..85d8c319d6945382eab263c0e3d5076bec861eb5:/include/wx/mac/stattext.h diff --git a/include/wx/mac/stattext.h b/include/wx/mac/stattext.h index 934d7e8118..787eaf29ed 100644 --- a/include/wx/mac/stattext.h +++ b/include/wx/mac/stattext.h @@ -20,7 +20,7 @@ class WXDLLEXPORT wxStaticText: public wxStaticTextBase { DECLARE_DYNAMIC_CLASS(wxStaticText) public: - inline wxStaticText() { } + inline wxStaticText() : m_label() { } inline wxStaticText(wxWindow *parent, wxWindowID id, const wxString& label, @@ -41,11 +41,13 @@ class WXDLLEXPORT wxStaticText: public wxStaticTextBase // accessors void SetLabel( const wxString &str ) ; + bool SetFont( const wxFont &font ); + // operations virtual void Command(wxCommandEvent& WXUNUSED(event)) {}; virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}; // events - void DrawParagraph(wxDC &dc, wxString paragraph); + void DrawParagraph(wxDC &dc, wxString paragraph, int &y); void OnPaint( wxPaintEvent &event ) ; void OnDraw( wxDC &dc ) ; virtual wxSize DoGetBestSize() const ;