X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/58614078c466cffaf0e5d0369741706f130fb793..c6ac78a61edd08ccfd0f1e5b37ee48ceb7bfa474:/include/wx/gtk/stattext.h diff --git a/include/wx/gtk/stattext.h b/include/wx/gtk/stattext.h index 1febeb3139..9ae390b841 100644 --- a/include/wx/gtk/stattext.h +++ b/include/wx/gtk/stattext.h @@ -30,31 +30,44 @@ class wxStaticText; // global data //----------------------------------------------------------------------------- -extern const char *wxStaticTextNameStr; - //----------------------------------------------------------------------------- // wxStaticText //----------------------------------------------------------------------------- -class wxStaticText: public wxControl +class wxStaticText : public wxControl { - DECLARE_DYNAMIC_CLASS(wxStaticText) - - public: - - wxStaticText(void); - wxStaticText( wxWindow *parent, wxWindowID id, const wxString &label, - const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, - long style = 0, const wxString &name = wxStaticTextNameStr ); - bool Create( wxWindow *parent, wxWindowID id, const wxString &label, - const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, - long style = 0, const wxString &name = wxStaticTextNameStr ); - wxString GetLabel(void) const; +public: + wxStaticText(); + wxStaticText(wxWindow *parent, + wxWindowID id, + const wxString &label, + const wxPoint &pos = wxDefaultPosition, + const wxSize &size = wxDefaultSize, + long style = 0, + const wxString &name = wxStaticTextNameStr ); + + bool Create(wxWindow *parent, + wxWindowID id, + const wxString &label, + const wxPoint &pos = wxDefaultPosition, + const wxSize &size = wxDefaultSize, + long style = 0, + const wxString &name = wxStaticTextNameStr ); + + wxString GetLabel() const; void SetLabel( const wxString &label ); + + bool SetFont( const wxFont &font ); - // implementation + // implementation + // -------------- void ApplyWidgetStyle(); + +protected: + virtual wxSize DoGetBestSize() const; + + DECLARE_DYNAMIC_CLASS(wxStaticText) }; #endif // __GTKSTATICTEXTH__