1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/carbon/statbmp.h
3 // Purpose: wxStaticBitmap class
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_STATBMP_H_
12 #define _WX_STATBMP_H_
16 class WXDLLIMPEXP_CORE wxStaticBitmap
: public wxStaticBitmapBase
18 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
22 wxStaticBitmap(wxWindow
*parent
, wxWindowID id
,
23 const wxBitmap
& label
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
,
27 const wxString
& name
= wxStaticBitmapNameStr
)
29 Create(parent
, id
, label
, pos
, size
, style
, name
);
32 bool Create(wxWindow
*parent
, wxWindowID id
,
33 const wxBitmap
& label
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
,
37 const wxString
& name
= wxStaticBitmapNameStr
);
39 virtual void SetBitmap(const wxBitmap
& bitmap
);
41 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {}
42 virtual void ProcessCommand(wxCommandEvent
& WXUNUSED(event
)) {}
43 void OnPaint( wxPaintEvent
&event
) ;
45 wxBitmap
GetBitmap() const { return m_bitmap
; }
46 wxIcon
GetIcon() const
48 // icons and bitmaps are really the same thing in wxMac
49 return (const wxIcon
&)m_bitmap
;
51 void SetIcon(const wxIcon
& icon
) { SetBitmap( (const wxBitmap
&)icon
) ; }
53 // overridden base class virtuals
54 virtual bool AcceptsFocus() const { return false; }
57 virtual wxSize
DoGetBestSize() const;