X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/151ccd11af31917b4bed26f988d4db03ba32f672..cd0183ca311cddba4c90afbd040ac61a013077a4:/include/wx/gtk1/bmpbuttn.h diff --git a/include/wx/gtk1/bmpbuttn.h b/include/wx/gtk1/bmpbuttn.h index 57bc2c3873..6800d97bf4 100644 --- a/include/wx/gtk1/bmpbuttn.h +++ b/include/wx/gtk1/bmpbuttn.h @@ -44,15 +44,25 @@ class wxBitmapButton: public wxControl public: wxBitmapButton(void); - wxBitmapButton( wxWindow *parent, wxWindowID id, const wxBitmap &bitmap, - const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, - const long style = 0, const wxString &name = wxButtonNameStr ); - bool Create( wxWindow *parent, wxWindowID id, const wxBitmap &bitmap, - const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, - const long style = 0, const wxString &name = wxButtonNameStr ); + inline wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxButtonNameStr) + { + Create(parent, id, bitmap, pos, size, style, validator, name); + } + bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxButtonNameStr); void SetDefault(void); void SetLabel( const wxString &label ); wxString GetLabel(void) const; + virtual void SetLabel(const wxBitmap& bitmap) { SetBitmapLabel(bitmap); } + virtual void SetBitmapLabel( const wxBitmap& bitmap ); + wxBitmap& GetBitmapLabel(void) const { return (wxBitmap&) m_bitmap; } public: