X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b6dbb09746f8f5ee0549a2ff39ae0ac4c725898..8870c26ecb03e87065fdb3617b8c47ca3c923a53:/include/wx/motif/statbmp.h diff --git a/include/wx/motif/statbmp.h b/include/wx/motif/statbmp.h index 8045813fc4..3da85fba6f 100644 --- a/include/wx/motif/statbmp.h +++ b/include/wx/motif/statbmp.h @@ -25,6 +25,7 @@ class WXDLLEXPORT wxStaticBitmap: public wxControl DECLARE_DYNAMIC_CLASS(wxStaticBitmap) public: inline wxStaticBitmap() { } + ~wxStaticBitmap(); inline wxStaticBitmap(wxWindow *parent, wxWindowID id, const wxBitmap& label, @@ -49,12 +50,21 @@ class WXDLLEXPORT wxStaticBitmap: public wxControl virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}; void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO) + { wxWindow::SetSize(rect, sizeFlags); } + void SetSize(const wxSize& size) { wxWindow::SetSize(size); } + virtual void SetSize(int width, int height) { SetSize(-1, -1, width, height, wxSIZE_USE_EXISTING); } inline wxBitmap& GetBitmap() const { return (wxBitmap&) m_messageBitmap; } // overriden base class virtuals virtual bool AcceptsFocus() const { return FALSE; } +// Implementation + virtual void ChangeFont(bool keepOriginalSize = TRUE); + virtual void ChangeBackgroundColour(); + virtual void ChangeForegroundColour(); + protected: wxBitmap m_messageBitmap;